|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Swizzling
| Method Summary | |
|---|---|
Object |
getRealTarget(Object swizzledObject)
Get the real object associated with the given swizzled object. |
boolean |
isSameInstance(Object swizzledObject,
Object object)
Test if the given swizzled object is the same as the given object. |
Object |
swizzle(Object newObj,
Object oldObj,
PersistenceBroker pb,
ObjectCache cache)
Swizzle object references. |
| Method Detail |
|---|
Object swizzle(Object newObj,
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.
boolean isSameInstance(Object swizzledObject,
Object object)
swizzledObject - The swizzled objectobject - The other object to be compared to
Object getRealTarget(Object swizzledObject)
swizzledObject - the swizzled object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||