|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.AbstractChangeTracker org.apache.openjpa.util.CollectionChangeTrackerImpl
public class CollectionChangeTrackerImpl
Default CollectionChangeTracker
.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.util.AbstractChangeTracker |
---|
add, change, rem |
Constructor Summary | |
---|---|
CollectionChangeTrackerImpl(Collection coll,
boolean dups,
boolean order,
boolean autoOff)
Constructor. |
Method Summary | |
---|---|
protected void |
add(Object elem)
Mark the given value as added. |
void |
added(Object elem)
Notify the tracker that the given object was added. |
boolean |
allowsDuplicates()
Whether the underlying collection allows duplicates. |
protected void |
change(Object elem)
Mark the given value as changed. |
protected int |
initialSequence()
Return the initial sequence value for this proxy. |
boolean |
isOrdered()
Whether the underlying collection is ordered. |
protected void |
remove(Object elem)
Mark the given value as removed. |
void |
removed(Object elem)
Notify the tracker that the given object was removed. |
Methods inherited from class org.apache.openjpa.util.AbstractChangeTracker |
---|
changed, getAdded, getAutoOff, getChanged, getNextSequence, getRemoved, isTracking, newSet, reset, setAutoOff, setNextSequence, startTracking, stopTracking |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.util.ChangeTracker |
---|
getAdded, getChanged, getNextSequence, getRemoved, isTracking, setNextSequence, startTracking, stopTracking |
Constructor Detail |
---|
public CollectionChangeTrackerImpl(Collection coll, boolean dups, boolean order, boolean autoOff)
coll
- the collection to delegate todups
- true if the collection allows duplicates, false otherwiseorder
- true if the collection is ordered, false otherwiseMethod Detail |
---|
public boolean allowsDuplicates()
public boolean isOrdered()
public void added(Object elem)
AbstractChangeTracker
added
in interface CollectionChangeTracker
added
in class AbstractChangeTracker
public void removed(Object elem)
AbstractChangeTracker
removed
in interface CollectionChangeTracker
removed
in class AbstractChangeTracker
protected int initialSequence()
AbstractChangeTracker
initialSequence
in class AbstractChangeTracker
protected void add(Object elem)
AbstractChangeTracker
add
in class AbstractChangeTracker
protected void remove(Object elem)
AbstractChangeTracker
remove
in class AbstractChangeTracker
protected void change(Object elem)
AbstractChangeTracker
change
in class AbstractChangeTracker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |