SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Class ProxyHashMapCT

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.solarmetric.rd.kodo.util.ProxyHashMap
                    |
                    +--com.solarmetric.rd.kodo.util.ProxyHashMapCT
All Implemented Interfaces:
ChangeTracker, java.lang.Cloneable, java.util.Map, Proxy, ProxyMap, java.io.Serializable

public class ProxyHashMapCT
extends ProxyHashMap
implements ChangeTracker

Extension of the ProxyHashMap to implement ChangeTracker. The ProxyHashMap 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
ProxyHashMapCT()
          Template constructor.
ProxyHashMapCT(java.lang.Class keyType, java.lang.Class valueType)
          Constructor.
ProxyHashMapCT(java.util.Map m, java.lang.Class keyType, java.lang.Class valueType)
          Constructor.
 
Method Summary
 com.solarmetric.rd.kodo.util.ProxyMap newInstance(java.lang.Class keyType, java.lang.Class valueType, java.util.Map 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.ProxyHashMap
clear, entrySet, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, isOwner, keySet, put, putAll, remove, setChangeManager, values, writeReplace
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, get, isEmpty, size
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, 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.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, size
 

Constructor Detail

ProxyHashMapCT

public ProxyHashMapCT()
Template constructor.


ProxyHashMapCT

public ProxyHashMapCT(java.util.Map m,
                      java.lang.Class keyType,
                      java.lang.Class valueType)
Constructor.

See Also:
ProxyHashMap

ProxyHashMapCT

public ProxyHashMapCT(java.lang.Class keyType,
                      java.lang.Class valueType)
Constructor.

See Also:
ProxyHashMap
Method Detail

newInstance

public com.solarmetric.rd.kodo.util.ProxyMap newInstance(java.lang.Class keyType,
                                                         java.lang.Class valueType,
                                                         java.util.Map contents,
                                                         java.util.Comparator compare)
Description copied from interface: ProxyMap
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 ProxyMap
Overrides:
newInstance in class ProxyHashMap

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 ProxyHashMap

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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