SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.util
Class ChangeManager

java.lang.Object
  |
  +--com.solarmetric.kodo.util.ChangeManager

public class ChangeManager
extends Object

Helper that ChangeTrackers can optionally use to implement change tracking.


Constructor Summary
ChangeManager(boolean issueAllAdds)
          Constructor.
 
Method Summary
 void added(Collection coll)
          Call this method when new values are added to the proxy.
 void added(Object val)
          Call this method when a new value is added to the proxy.
 Collection getAdded()
          Returns the consolidated proxy additions.
 Collection getRemoved()
          Returns the consolidated proxy removals.
 void removed(Collection coll)
          Call this method when old values are removed from the proxy.
 void removed(Object val)
          Call this method when an old value is removed from the proxy.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeManager

public ChangeManager(boolean issueAllAdds)
Constructor.
Parameters:
issueAllAdds - whether to always include additions in the added collection, even if the additions have a corresponding remove; generally, maps should issue all additions because a put of a previously-removed key might be a new value, while sets should not issue all additions
Method Detail

added

public void added(Object val)
Call this method when a new value is added to the proxy.

added

public void added(Collection coll)
Call this method when new values are added to the proxy.

removed

public void removed(Object val)
Call this method when an old value is removed from the proxy.

removed

public void removed(Collection coll)
Call this method when old values are removed from the proxy.

getAdded

public Collection getAdded()
Returns the consolidated proxy additions.

getRemoved

public Collection getRemoved()
Returns the consolidated proxy removals.

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.