|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
org.apache.ojb.broker.util.collections.ManageableVector
org.apache.ojb.broker.util.collections.RemovalAwareCollection
This is a collection that tracks removal and addition of elements. This tracking allow the PersistenceBroker to delete elements from the database that have been removed from the collection before a PB.store() orperation occurs. This will allow to use the PB api in way pretty close to ODMG persistent collections!
| Constructor Summary | |
RemovalAwareCollection()
|
|
| Method Summary | |
void |
afterStore(PersistenceBroker broker)
A callback method to implement 'removal-aware' (track removed objects and delete them by its own) collection implementations. |
void |
clear()
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
void |
removeAllElements()
|
void |
removeElementAt(int index)
|
| Methods inherited from class org.apache.ojb.broker.util.collections.ManageableVector |
ojbAdd, ojbAddAll, ojbIterator |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAll, removeElement, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
| Constructor Detail |
public RemovalAwareCollection()
| Method Detail |
public void afterStore(PersistenceBroker broker)
throws PersistenceBrokerException
ManageableCollection
afterStore in interface ManageableCollectionafterStore in class ManageableVectorPersistenceBrokerExceptionManageableCollection.afterStore(PersistenceBroker broker)public java.lang.Object remove(int index)
remove in interface java.util.ListList.remove(int)public boolean remove(java.lang.Object o)
remove in interface java.util.ListCollection.remove(Object)public void clear()
clear in interface java.util.ListVector.clear()public void removeAllElements()
Vector.removeAllElements()public void removeElementAt(int index)
Vector.removeElementAt(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||