|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Swizzles object references as objects are displaced by other similar objects in the EditingContext.
Method Summary | |
java.lang.Object |
getRealTarget(java.lang.Object swizzledObject)
Get the real object associated with the given swizzled object. |
boolean |
isSameInstance(java.lang.Object swizzledObject,
java.lang.Object object)
Test if the given swizzled object is the same as the given object. |
java.lang.Object |
swizzle(java.lang.Object newObj,
java.lang.Object oldObj,
PersistenceBroker pb,
ObjectCache cache)
Swizzle object references. |
Method Detail |
public java.lang.Object swizzle(java.lang.Object newObj, java.lang.Object oldObj, PersistenceBroker pb, ObjectCache cache)
newObj
- the object being inserted into the EditingContext,
is null if the object is being invalidatedoldObj
- the object present in the EditingContext,
is null if no object is presentpb
- the PersistenceBroker that is used to get
persistent class infocache
- the "cache" of old objects, only lookup() method
can be used by the Swizzling implementation to seek for old objects
that should be set as a new value of relations
public boolean isSameInstance(java.lang.Object swizzledObject, java.lang.Object object)
swizzledObject
- The swizzled objectobject
- The other object to be compared to
public java.lang.Object getRealTarget(java.lang.Object swizzledObject)
swizzledObject
- the swizzled object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |