SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

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

Constructor Summary
ProxyHashSetCT()
          Template constructor.
ProxyHashSetCT(Class elementType)
          Constructor.
ProxyHashSetCT(Collection contents, 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.ProxyHashSet
add, addAll, clear, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, iterator, remove, removeAll, retainAll, setChangeManager, writeReplace
 
Methods inherited from class java.util.HashSet
, clone, contains, isEmpty, size
 
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

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
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 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

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

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