|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.solarmetric.kodo.util.ProxyHashtable
Extension of the Hashtable type that dirties the
persistent/transactional field it is assigned to on modification.
The need to dirty the field on any modification mandates that
this class must override all mutator methods of the base type.
This may lead to multiple calls to the
PersistenceCapable.jdoMakeDirty(java.lang.String) for one state
change if one mutator method of the base type calls another.
| Inner classes inherited from class java.util.Map |
Map.Entry |
| Constructor Summary | |
ProxyHashtable()
Template constructor. |
|
ProxyHashtable(Class keyType,
Class valueType)
Constructor. |
|
ProxyHashtable(Map m,
Class keyType,
Class valueType)
Constructor. |
|
| Method Summary | |
void |
clear()
|
Set |
entrySet()
|
Collection |
getAdded()
|
ChangeManager |
getChangeManager()
|
Comparator |
getComparator()
Return the comparator used in this map, or null if it is unordered or uses natural ordering. |
Map |
getCopy(Map orig)
This method should return a copy of the given map; the copy should be of the same class as the superclass of this collection. |
Object |
getOwner()
Return the owning object. |
String |
getOwnerFieldName()
Return the owning field name. |
Collection |
getRemoved()
|
Set |
keySet()
|
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. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map m)
|
Object |
remove(Object key)
|
void |
setChangeManager(ChangeManager cm)
|
void |
setOwner(Object pc,
String fieldName)
Set the owning JDO instance of the proxy and the name of the field it is assigned to. |
Collection |
values()
|
protected Object |
writeReplace()
|
| Methods inherited from class java.util.Hashtable |
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
containsKey, containsValue, equals, get, hashCode, isEmpty, size |
| Constructor Detail |
public ProxyHashtable()
public ProxyHashtable(Map m,
Class keyType,
Class valueType)
m - The data that this map should contain.keyType - All keys in this map must be instances
of this type.valueType - All values in this map must be instances
of this type.
public ProxyHashtable(Class keyType,
Class valueType)
keyType - All keys in this map must be instances
of this type.valueType - All values in this map must be instances
of this type.| Method Detail |
public ProxyMap newInstance(Class keyType,
Class valueType,
Map contents,
Comparator compare)
ProxyMapProxyManager 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.newInstance in interface ProxyMappublic Map getCopy(Map orig)
ProxyMapgetCopy in interface ProxyMappublic Comparator getComparator()
ProxyMapgetComparator in interface ProxyMap
public void setOwner(Object pc,
String fieldName)
ProxyMapsetOwner in interface ProxyMappublic Object getOwner()
ProxyMapgetOwner in interface ProxyMappublic String getOwnerFieldName()
ProxyMapgetOwnerFieldName in interface ProxyMappublic ChangeManager getChangeManager()
public void setChangeManager(ChangeManager cm)
public Collection getRemoved()
public Collection getAdded()
public void clear()
clear in interface Mapclear in class Hashtablepublic Set keySet()
keySet in interface MapkeySet in class Hashtablepublic Collection values()
values in interface Mapvalues in class Hashtablepublic Set entrySet()
entrySet in interface MapentrySet in class Hashtable
public Object put(Object key,
Object value)
put in interface Mapput in class Hashtablepublic void putAll(Map m)
putAll in interface MapputAll in class Hashtablepublic Object remove(Object key)
remove in interface Mapremove in class Hashtable
protected Object writeReplace()
throws ObjectStreamException
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||