|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manager for copying and proxying second class objects. JDO considers second class objects to be those that are often used as fields of persistent or transactional instances, and which can themselves be modified without resetting the owning class' field. Because these types can change without an explicit call to the owning persistence capable instance, special care must be taken to ensure that their state is managed correctly. Specifically, they must be copied when saving state for rollback, and they must be proxied for any instance whose state is managed by a state manager, where proxying involves creating a second class object that automaticlly notifies its owning instance whenever it is modified. Generally, this factory is only used by the JDO implementation; second class object handling is transparent to client code.
Method Summary | |
Object |
copyArray(Object orig)
Return a new array of the same component type as the given array and containing the same elements. |
Collection |
copyCollection(Collection orig)
Return a new collection of the same type as the given one with a copy of all contained elements. |
Object |
copyCustom(Object orig)
Return a copy of the given object with the same information. |
Date |
copyDate(Date orig)
Return a copy of the given date with the same information. |
Map |
copyMap(Map orig)
Return a new map of the same type as the given one with a copy of all contained key/value pairs. |
ProxyCollection |
newCollectionProxy(Class type,
Class elementType,
Comparator compare)
Return a proxy for the given collection type. |
Proxy |
newCustomProxy(Object obj)
Return a proxy for the given object, or null if this manager cannot proxy the object. |
ProxyDate |
newDateProxy()
Return a new date proxy. |
ProxyMap |
newMapProxy(Class type,
Class keyType,
Class valueType,
Comparator compare)
Return a proxy for the given map type. |
Method Detail |
public Date copyDate(Date orig)
public Collection copyCollection(Collection orig)
public Map copyMap(Map orig)
public Object copyArray(Object orig)
public Object copyCustom(Object orig)
public ProxyDate newDateProxy()
public ProxyCollection newCollectionProxy(Class type, Class elementType, Comparator compare)
public ProxyMap newMapProxy(Class type, Class keyType, Class valueType, Comparator compare)
public Proxy newCustomProxy(Object obj)
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |