com.solarmetric.kodo.util
Class ProxyHashSetCT
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--com.solarmetric.kodo.util.ProxyHashSet
|
+--com.solarmetric.kodo.util.ProxyHashSetCT
- All Implemented Interfaces:
- ChangeTracker, Cloneable, Collection, ProxyCollection, Serializable, Set
- public class ProxyHashSetCT
- extends ProxyHashSet
- implements ChangeTracker
Extension of the ProxyHashSet to implement ChangeTracker.
The ProxyHashSet 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.ProxyHashSet |
add, addAll, clear, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, iterator, remove, removeAll, retainAll, setChangeManager, writeReplace |
ProxyHashSetCT
public ProxyHashSetCT()
- Template constructor.
ProxyHashSetCT
public ProxyHashSetCT(Collection contents,
Class elementType)
- Constructor.
- See Also:
ProxyHashSet
ProxyHashSetCT
public ProxyHashSetCT(Class elementType)
- Constructor.
- See Also:
ProxyHashSet
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 ProxyHashSet
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 ProxyHashSet
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.