|
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
oracle.toplink.descriptors.copying.CloneCopyPolicy
Purpose: Creates a clone through a clone method.
Constructor Summary | |
CloneCopyPolicy() |
Method Summary | |
java.lang.Object |
buildClone(java.lang.Object domainObject, Session session) Clone through calling the clone method. |
boolean |
buildsNewInstance() Return false as a shallow clone is returned, not a new instance. |
java.lang.Object |
buildWorkingCopyClone(java.lang.Object domainObject, Session session) Clone through the workingCopyClone method, or if not specified the clone method. |
java.lang.Object |
buildWorkingCopyCloneFromRow(Record row, ObjectLevelReadQuery query) Create a new instance, unless a workingCopyClone method is specified, then build a new instance and clone it. |
java.lang.String |
getMethodName() Return the clone method name. |
java.lang.String |
getWorkingCopyMethodName() Return the workingCopyClone method name. |
void |
initialize(Session session) Validate and build the methods. |
void |
setMethodName(java.lang.String methodName) Set the clone method name. |
void |
setWorkingCopyMethodName(java.lang.String methodName) Set the workingCopyClone method name. |
java.lang.String |
toString() |
Methods inherited from class oracle.toplink.descriptors.copying.AbstractCopyPolicy |
buildWorkingCopyCloneFromRow, setDescriptor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CloneCopyPolicy()
Method Detail |
public java.lang.Object buildClone(java.lang.Object domainObject, Session session) throws DescriptorException
buildClone
in interface CopyPolicy
buildClone
in class AbstractCopyPolicy
DescriptorException
public java.lang.Object buildWorkingCopyClone(java.lang.Object domainObject, Session session) throws DescriptorException
buildWorkingCopyClone
in interface CopyPolicy
buildWorkingCopyClone
in class AbstractCopyPolicy
DescriptorException
public java.lang.Object buildWorkingCopyCloneFromRow(Record row, ObjectLevelReadQuery query) throws DescriptorException
DescriptorException
public java.lang.String getMethodName()
public java.lang.String getWorkingCopyMethodName()
public void initialize(Session session) throws DescriptorException
initialize
in interface CopyPolicy
initialize
in class AbstractCopyPolicy
DescriptorException
public void setMethodName(java.lang.String methodName)
public void setWorkingCopyMethodName(java.lang.String methodName)
public boolean buildsNewInstance()
buildsNewInstance
in interface CopyPolicy
buildsNewInstance
in class AbstractCopyPolicy
public java.lang.String toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |