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
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 |
ProxyTreeSetCT
public ProxyTreeSetCT()
- Template constructor.
ProxyTreeSetCT
public ProxyTreeSetCT(Comparator comp,
Class elementType)
- Constructor.
- See Also:
ProxyTreeSet
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
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.