| org.apache.ojb.otm.swizzle.Swizzling
All known Subclasses: org.apache.ojb.otm.swizzle.CopySwizzling, org.apache.ojb.otm.swizzle.NoSwizzling,
Swizzling | public interface Swizzling (Code) | | |
Method Summary | |
public Object | getRealTarget(Object swizzledObject) Get the real object associated with the given swizzled object. | public boolean | isSameInstance(Object swizzledObject, Object object) Test if the given swizzled object is the same as the given object. | public Object | swizzle(Object newObj, Object oldObj, PersistenceBroker pb, ObjectCache cache) Swizzle object references.
Parameters: newObj - the object being inserted into the EditingContext,is null if the object is being invalidated Parameters: oldObj - the object present in the EditingContext,is null if no object is present Parameters: pb - the PersistenceBroker that is used to getpersistent class info Parameters: cache - the "cache" of old objects, only lookup() methodcan be used by the Swizzling implementation to seek for old objectsthat should be set as a new value of relations. |
getRealTarget | public Object getRealTarget(Object swizzledObject)(Code) | | Get the real object associated with the given swizzled object.
Parameters: swizzledObject - the swizzled object the real object |
isSameInstance | public boolean isSameInstance(Object swizzledObject, Object object)(Code) | | Test if the given swizzled object is the same as the given object. By same object we mean,
that the System.identityHashCode() of the given object is the same as that of the object
represented by the swizzled object.
Parameters: swizzledObject - The swizzled object Parameters: object - The other object to be compared to true, if they are the same. false, otherwise. |
swizzle | public Object swizzle(Object newObj, Object oldObj, PersistenceBroker pb, ObjectCache cache)(Code) | | Swizzle object references.
Parameters: newObj - the object being inserted into the EditingContext,is null if the object is being invalidated Parameters: oldObj - the object present in the EditingContext,is null if no object is present Parameters: pb - the PersistenceBroker that is used to getpersistent class info Parameters: cache - the "cache" of old objects, only lookup() methodcan be used by the Swizzling implementation to seek for old objectsthat should be set as a new value of relations. the Swizzled Object |
|
|