|
|||||||||
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.ArrayList
org.apache.ojb.broker.util.collections.ManageableArrayList
org.apache.ojb.broker.util.collections.RemovalAwareList
public class RemovalAwareList
This is a list 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 | |
---|---|
RemovalAwareList()
|
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)
|
void |
resetDeleted()
|
Methods inherited from class org.apache.ojb.broker.util.collections.ManageableArrayList |
---|
ojbAdd, ojbAddAll, ojbIterator |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Constructor Detail |
---|
public RemovalAwareList()
Method Detail |
---|
public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
ManageableCollection
afterStore
in interface ManageableCollection
afterStore
in class ManageableArrayList
broker
- The persistence broker
PersistenceBrokerException
ManageableCollection.afterStore(PersistenceBroker broker)
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.ArrayList
List.remove(int)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class java.util.ArrayList
Collection.remove(Object)
public void removeAllElements()
Vector.removeAllElements()
public void removeElementAt(int index)
Vector.removeElementAt(int)
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.ArrayList
public void resetDeleted()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |