|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.openjpa.util.ProxyProperties
public class 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 dirty for one state
change if one mutator method of the base type calls another.
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
ProxyProperties()
|
|
ProxyProperties(boolean trackChanges,
OpenJPAConfiguration conf)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
Object |
copy(Object orig)
Return an unproxied copy of the given instance. |
Set |
entrySet()
|
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
OpenJPAStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
Set |
keySet()
|
void |
load(InputStream in)
|
ProxyMap |
newInstance(Class keyType,
Class valueType,
Comparator compare,
boolean trackChanges,
OpenJPAConfiguration conf)
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 |
setOwner(OpenJPAStateManager sm,
int field)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. |
Object |
setProperty(String key,
String value)
|
Collection |
values()
|
protected Object |
writeReplace()
|
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, store, storeToXML, storeToXML |
| 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 |
| Constructor Detail |
|---|
public ProxyProperties()
public ProxyProperties(boolean trackChanges,
OpenJPAConfiguration conf)
| Method Detail |
|---|
public void setOwner(OpenJPAStateManager sm,
int field)
Proxy
setOwner in interface Proxypublic OpenJPAStateManager getOwner()
Proxy
getOwner in interface Proxypublic int getOwnerField()
Proxy
getOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
Proxy
getChangeTracker in interface Proxypublic Object copy(Object orig)
Proxy
copy in interface Proxy
public ProxyMap newInstance(Class keyType,
Class valueType,
Comparator compare,
boolean trackChanges,
OpenJPAConfiguration conf)
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 void clear()
clear in interface Map<Object,Object>clear in class Hashtable<Object,Object>public Set keySet()
keySet in interface Map<Object,Object>keySet in class Hashtable<Object,Object>public Collection values()
values in interface Map<Object,Object>values in class Hashtable<Object,Object>public Set entrySet()
entrySet in interface Map<Object,Object>entrySet in class Hashtable<Object,Object>
public Object put(Object key,
Object value)
put in interface Map<Object,Object>put in class Hashtable<Object,Object>public void putAll(Map m)
putAll in interface Map<Object,Object>putAll in class Hashtable<Object,Object>public Object remove(Object key)
remove in interface Map<Object,Object>remove in class Hashtable<Object,Object>
public Object setProperty(String key,
String value)
setProperty in class Properties
public void load(InputStream in)
throws IOException
load in class PropertiesIOException
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||