Package org.apache.openjpa.util
Class MapChangeTrackerImpl
java.lang.Object
org.apache.openjpa.util.AbstractChangeTracker
org.apache.openjpa.util.MapChangeTrackerImpl
- All Implemented Interfaces:
ChangeTracker,MapChangeTracker
Default
MapChangeTracker.- Author:
- Abe White
-
Field Summary
Fields inherited from class org.apache.openjpa.util.AbstractChangeTracker
add, change, rem -
Constructor Summary
ConstructorsConstructorDescriptionMapChangeTrackerImpl(Map map, boolean autoOff) Constructor; supply delegate map. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMark the given value as added.voidRecord that the given entry was added to the map.protected voidMark the given value as changed.voidRecord that the given entry was altered.booleanWhether to track keys or values.protected voidMark the given value as removed.voidRecord that the given entry was removed from the map.voidsetTrackKeys(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, stopTrackingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.util.ChangeTracker
getAdded, getChanged, getNextSequence, getRemoved, isTracking, setNextSequence, startTracking, stopTracking
-
Constructor Details
-
MapChangeTrackerImpl
Constructor; supply delegate map.
-
-
Method Details
-
getTrackKeys
public boolean getTrackKeys()Description copied from interface:MapChangeTrackerWhether to track keys or values. Defaults to keys. If you set to values, it is assumed there is a 1-1 correlation between keys and values in this map.- Specified by:
getTrackKeysin interfaceMapChangeTracker
-
setTrackKeys
public void setTrackKeys(boolean keys) Description copied from interface:MapChangeTrackerWhether to track keys or values. Defaults to keys. If you set to values, it is assumed there is a 1-1 correlation between keys and values in this map.- Specified by:
setTrackKeysin interfaceMapChangeTracker
-
added
Description copied from interface:MapChangeTrackerRecord that the given entry was added to the map.- Specified by:
addedin interfaceMapChangeTracker
-
removed
Description copied from interface:MapChangeTrackerRecord that the given entry was removed from the map.- Specified by:
removedin interfaceMapChangeTracker
-
changed
Description copied from interface:MapChangeTrackerRecord that the given entry was altered.- Specified by:
changedin interfaceMapChangeTracker
-
add
Description copied from class:AbstractChangeTrackerMark the given value as added.- Specified by:
addin classAbstractChangeTracker
-
remove
Description copied from class:AbstractChangeTrackerMark the given value as removed.- Specified by:
removein classAbstractChangeTracker
-
change
Description copied from class:AbstractChangeTrackerMark the given value as changed.- Specified by:
changein classAbstractChangeTracker
-