SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Class ProxyHashSetCT

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--com.solarmetric.rd.kodo.util.ProxyHashSet
                          |
                          +--com.solarmetric.rd.kodo.util.ProxyHashSetCT
All Implemented Interfaces:
ChangeTracker, java.lang.Cloneable, java.util.Collection, Proxy, ProxyCollection, java.io.Serializable, java.util.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 keeps change tracking turned off by default. This class turns it on.

See Also:
Serialized Form

Constructor Summary
ProxyHashSetCT()
          Template constructor.
ProxyHashSetCT(java.lang.Class elementType)
          Constructor.
ProxyHashSetCT(java.util.Collection contents, java.lang.Class elementType)
          Constructor.
 
Method Summary
 com.solarmetric.rd.kodo.util.ProxyCollection newInstance(java.lang.Class elementType, java.util.Collection contents, java.util.Comparator compare)
          This method should return a new proxy of the same concrete type as the implementing class.
 void setOwner(java.lang.Object pc, java.lang.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.rd.kodo.util.ProxyHashSet
add, addAll, clear, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, isOwner, 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.rd.kodo.util.ChangeTracker
getAdded, getRemoved
 
Methods inherited from interface com.solarmetric.rd.kodo.util.Proxy
getOwner, getOwnerFieldName, isOwner
 
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(java.util.Collection contents,
                      java.lang.Class elementType)
Constructor.

See Also:
ProxyHashSet

ProxyHashSetCT

public ProxyHashSetCT(java.lang.Class elementType)
Constructor.

See Also:
ProxyHashSet
Method Detail

newInstance

public com.solarmetric.rd.kodo.util.ProxyCollection newInstance(java.lang.Class elementType,
                                                                java.util.Collection contents,
                                                                java.util.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.

Specified by:
newInstance in interface ProxyCollection
Overrides:
newInstance in class ProxyHashSet

setOwner

public void setOwner(java.lang.Object pc,
                     java.lang.String fieldName)
Description copied from interface: Proxy
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.

Specified by:
setOwner in interface Proxy
Overrides:
setOwner in class ProxyHashSet

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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