com.solarmetric.kodo.util
Class ProxyHashMapCT
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--com.solarmetric.kodo.util.ProxyHashMap
|
+--com.solarmetric.kodo.util.ProxyHashMapCT
- All Implemented Interfaces:
- ChangeTracker, Cloneable, Map, Proxy, ProxyMap, 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 keep change tracking turned off by default. This class turns
it on.
- See Also:
- Serialized Form
|
Method Summary |
ProxyMap |
newInstance(Class keyType,
Class valueType,
Map 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.ProxyHashMap |
clear, entrySet, getAdded, getChangeManager, getComparator, getCopy, getOwner, getOwnerFieldName, getRemoved, keySet, put, putAll, remove, setChangeManager, values, writeReplace |
ProxyHashMapCT
public ProxyHashMapCT()
- Template constructor.
ProxyHashMapCT
public ProxyHashMapCT(Map m,
Class keyType,
Class valueType)
- Constructor.
- See Also:
ProxyHashMap
ProxyHashMapCT
public ProxyHashMapCT(Class keyType,
Class valueType)
- Constructor.
- See Also:
ProxyHashMap
newInstance
public ProxyMap newInstance(Class keyType,
Class valueType,
Map contents,
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.
- Overrides:
newInstance in class ProxyHashMap
setOwner
public void setOwner(Object pc,
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
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.