|
||||||||||
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.MapChangeTrackerImpl
public class MapChangeTrackerImpl
Default MapChangeTracker
.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.util.AbstractChangeTracker |
---|
add, change, rem |
Constructor Summary | |
---|---|
MapChangeTrackerImpl(Map map,
boolean autoOff)
Constructor; supply delegate map. |
Method Summary | |
---|---|
protected void |
add(Object obj)
Mark the given value as added. |
void |
added(Object key,
Object val)
Record that the given entry was added to the map. |
protected void |
change(Object key)
Mark the given value as changed. |
void |
changed(Object key,
Object oldVal,
Object newVal)
Record that the given entry was altered. |
boolean |
getTrackKeys()
Whether to track keys or values. |
protected void |
remove(Object obj)
Mark the given value as removed. |
void |
removed(Object key,
Object val)
Record that the given entry was removed from the map. |
void |
setTrackKeys(boolean keys)
Whether to track keys or values. |
Methods inherited from class org.apache.openjpa.util.AbstractChangeTracker |
---|
added, changed, getAdded, getAutoOff, getChanged, getNextSequence, getRemoved, initialSequence, isTracking, newSet, removed, 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 MapChangeTrackerImpl(Map map, boolean autoOff)
Method Detail |
---|
public boolean getTrackKeys()
MapChangeTracker
getTrackKeys
in interface MapChangeTracker
public void setTrackKeys(boolean keys)
MapChangeTracker
setTrackKeys
in interface MapChangeTracker
public void added(Object key, Object val)
MapChangeTracker
added
in interface MapChangeTracker
public void removed(Object key, Object val)
MapChangeTracker
removed
in interface MapChangeTracker
public void changed(Object key, Object oldVal, Object newVal)
MapChangeTracker
changed
in interface MapChangeTracker
protected void add(Object obj)
AbstractChangeTracker
add
in class AbstractChangeTracker
protected void remove(Object obj)
AbstractChangeTracker
remove
in class AbstractChangeTracker
protected void change(Object key)
AbstractChangeTracker
change
in class AbstractChangeTracker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |