SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.util
Class ProxyTreeSetCT

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.TreeSet
                    |
                    +--com.solarmetric.kodo.util.ProxyTreeSet
                          |
                          +--com.solarmetric.kodo.util.ProxyTreeSetCT
All Implemented Interfaces:
ChangeTracker, Cloneable, Collection, ProxyCollection, Serializable, Set, SortedSet

public class ProxyTreeSetCT
extends ProxyTreeSet
implements ChangeTracker

Extension of the ProxyTreeSet to implement ChangeTracker. The ProxyTreeSet actually does all the logic to track changes itself, but keep change tracking turned off by default. This class turns it on.

See Also:
Serialized Form

Constructor Summary
ProxyTreeSetCT()
          Template constructor.
ProxyTreeSetCT(Comparator comp, Class elementType)
          Constructor.
 
Method Summary
 ProxyCollection newInstance(Class elementType, Collection contents, Comparator compare)
          This method should return a new proxy of the same concrete type as the implementing class.
 void setOwner(Object pc, String fieldName)
          Set the owning JDO instance of the proxy and the name of the field it is assigned to.
 
Methods inherited from class com.solarmetric.kodo.util.ProxyTreeSet
add, addAll, clear, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, iterator, remove, removeAll, retainAll, setChangeManager, writeReplace
 
Methods inherited from class java.util.TreeSet
, clone, comparator, contains, first, headSet, isEmpty, last, size, subSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.solarmetric.kodo.util.ChangeTracker
getAdded, getRemoved
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, toArray, toArray
 

Constructor Detail

ProxyTreeSetCT

public ProxyTreeSetCT()
Template constructor.

ProxyTreeSetCT

public ProxyTreeSetCT(Comparator comp,
                      Class elementType)
Constructor.
See Also:
ProxyTreeSet
Method Detail

newInstance

public ProxyCollection newInstance(Class elementType,
                                   Collection contents,
                                   Comparator compare)
Description copied from interface: ProxyCollection
This method should return a new proxy of the same concrete type as the implementing class. Used by the ProxyManager factories: one template instance of each type is created for the purpose of producing new instances via this method. Overcomes the performance penalties of reflection.
Overrides:
newInstance in class ProxyTreeSet

setOwner

public void setOwner(Object pc,
                     String fieldName)
Description copied from interface: ProxyCollection
Set the owning JDO instance of the proxy and the name of the field it is assigned to. Set to null to indicate that the proxy is no longer managed.
Overrides:
setOwner in class ProxyTreeSet

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

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