|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.apache.ojb.broker.util.collections.ManageableVector
org.apache.ojb.broker.util.collections.RemovalAwareCollection
public class 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 ManageableVectorbroker - The persistence broker
PersistenceBrokerExceptionManageableCollection.afterStore(PersistenceBroker broker)public java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.VectorList.remove(int)public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class java.util.VectorCollection.remove(Object)public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.VectorVector.clear()public void removeAllElements()
removeAllElements in class java.util.VectorVector.removeAllElements()public void removeElementAt(int index)
removeElementAt in class java.util.VectorVector.removeElementAt(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||