|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.util.AbstractChangeTracker
org.apache.openjpa.util.CollectionChangeTrackerImpl
public class CollectionChangeTrackerImpl
Default CollectionChangeTracker.
| Field Summary | |
|---|---|
protected Collection |
_coll
|
protected boolean |
_dups
|
protected boolean |
_order
|
| 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 |
| Field Detail |
|---|
protected final Collection _coll
protected final boolean _dups
protected final boolean _order
| 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 otherwise| Method Detail |
|---|
public boolean allowsDuplicates()
public boolean isOrdered()
public void added(Object elem)
AbstractChangeTracker
added in interface CollectionChangeTrackeradded in class AbstractChangeTrackerpublic void removed(Object elem)
AbstractChangeTracker
removed in interface CollectionChangeTrackerremoved in class AbstractChangeTrackerprotected int initialSequence()
AbstractChangeTracker
initialSequence in class AbstractChangeTrackerprotected void add(Object elem)
AbstractChangeTracker
add in class AbstractChangeTrackerprotected void remove(Object elem)
AbstractChangeTracker
remove in class AbstractChangeTrackerprotected 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 | |||||||||