|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapChangeTracker
Change tracker that can be used for maps. If the user calls
any mutating methods on the map that do not have an equivalent in
this change tracker, then you must call ChangeTracker.stopTracking()
after applying the operation to the map. The collections returned from
ChangeTracker.getAdded()
and ChangeTracker.getRemoved()
will
be collections of keys to add/remove.
Method Summary | |
---|---|
void |
added(Object key,
Object val)
Record that the given entry was added to the map. |
void |
changed(Object key,
Object oldVal,
Object newVal)
Record that the given entry was altered. |
boolean |
getTrackKeys()
Whether to track keys or values. |
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 interface org.apache.openjpa.util.ChangeTracker |
---|
getAdded, getChanged, getNextSequence, getRemoved, isTracking, setNextSequence, startTracking, stopTracking |
Method Detail |
---|
boolean getTrackKeys()
void setTrackKeys(boolean keys)
void added(Object key, Object val)
void removed(Object key, Object val)
void changed(Object key, Object oldVal, Object newVal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |