|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.descriptors.copying.AbstractCopyPolicy
Purpose: Allows customization of how an object is cloned. This class defines common behavoir that allows a subclass to be used and set on a descriptor to provide a special cloning routine for how an object is cloned in a unit of work.
Constructor Summary | |
AbstractCopyPolicy() |
Method Summary | |
abstract java.lang.Object |
buildClone(java.lang.Object domainObject, Session session) Return a shallow clone of the object for usage with object copying, or unit of work backup cloning. |
abstract boolean |
buildsNewInstance() Return if a new instance is created or a clone. |
java.lang.Object |
buildWorkingCopyClone(java.lang.Object domainObject, Session session) By default use the buildClone. |
java.lang.Object |
buildWorkingCopyCloneFromRow(Record row, ObjectLevelReadQuery query, java.util.Vector primaryKey, UnitOfWork unitOfWork) By default create a new instance. |
void |
initialize(Session session) Do nothing by default. |
void |
setDescriptor(Descriptor descriptor) Set the descriptor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractCopyPolicy()
Method Detail |
public abstract java.lang.Object buildClone(java.lang.Object domainObject, Session session) throws DescriptorException
CopyPolicy
buildClone
in interface CopyPolicy
DescriptorException
public java.lang.Object buildWorkingCopyClone(java.lang.Object domainObject, Session session) throws DescriptorException
buildWorkingCopyClone
in interface CopyPolicy
DescriptorException
public java.lang.Object buildWorkingCopyCloneFromRow(Record row, ObjectLevelReadQuery query, java.util.Vector primaryKey, UnitOfWork unitOfWork) throws DescriptorException
buildWorkingCopyCloneFromRow
in interface CopyPolicy
DescriptorException
public void initialize(Session session) throws DescriptorException
initialize
in interface CopyPolicy
DescriptorException
public void setDescriptor(Descriptor descriptor)
setDescriptor
in interface CopyPolicy
public abstract boolean buildsNewInstance()
buildsNewInstance
in interface CopyPolicy
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |