|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.solarmetric.rd.kodo.util.ProxyProperties
Extension of the Properties 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.
There is no change tracking logic in properties because it is
difficult to determine what to do when Properties.load(java.io.InputStream) is
called; some implementations might not delegate to the Map.put(java.lang.Object, java.lang.Object)
or Properties.setProperty(java.lang.String, java.lang.String) methods when loading.
| Field Summary |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
ProxyProperties()
Template constructor. |
|
ProxyProperties(java.lang.Class keyType,
java.lang.Class valueType)
Constructor. |
|
| Method Summary | |
void |
clear()
|
java.util.Set |
entrySet()
|
java.util.Comparator |
getComparator()
Return the comparator used in this map, or null if it is unordered or uses natural ordering. |
java.util.Map |
getCopy(java.util.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. |
java.lang.Object |
getOwner()
Return the owning object. |
java.lang.String |
getOwnerFieldName()
Return the owning field name. |
boolean |
isOwner(java.lang.Object pc,
java.lang.String fieldName)
Return true if the given object and field name match the owner of this proxy. |
java.util.Set |
keySet()
|
void |
load(java.io.InputStream in)
|
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. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map m)
|
java.lang.Object |
remove(java.lang.Object key)
|
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. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
|
java.util.Collection |
values()
|
protected java.lang.Object |
writeReplace()
|
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, store |
| Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size, toString |
| 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 ProxyProperties()
public ProxyProperties(java.lang.Class keyType,
java.lang.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 com.solarmetric.rd.kodo.util.ProxyMap newInstance(java.lang.Class keyType,
java.lang.Class valueType,
java.util.Map contents,
java.util.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 java.util.Map getCopy(java.util.Map orig)
ProxyMap
getCopy in interface ProxyMappublic java.util.Comparator getComparator()
ProxyMap
getComparator in interface ProxyMap
public void setOwner(java.lang.Object pc,
java.lang.String fieldName)
Proxy
setOwner in interface Proxypublic java.lang.Object getOwner()
Proxy
getOwner in interface Proxypublic java.lang.String getOwnerFieldName()
Proxy
getOwnerFieldName in interface Proxy
public boolean isOwner(java.lang.Object pc,
java.lang.String fieldName)
Proxy
isOwner in interface Proxypublic void clear()
clear in interface java.util.Mapclear in class java.util.Hashtablepublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class java.util.Hashtablepublic java.util.Collection values()
values in interface java.util.Mapvalues in class java.util.Hashtablepublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class java.util.Hashtable
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.Hashtablepublic void putAll(java.util.Map m)
putAll in interface java.util.MapputAll in class java.util.Hashtablepublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class java.util.Hashtable
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
setProperty in class java.util.Properties
public void load(java.io.InputStream in)
throws java.io.IOException
load in class java.util.Propertiesjava.io.IOException
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||