public class PersistenceEntityCopyPolicy extends AbstractCopyPolicy
Purpose: This is the default copy policy when weaving is used. It creates a copy by creating a shallow clone of the object using the weaved _persistence_shallow_clone() method.
descriptor
Constructor and Description |
---|
PersistenceEntityCopyPolicy() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
buildClone(java.lang.Object object,
Session session)
Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.
|
boolean |
buildsNewInstance()
Return if this copy policy creates a new instance, vs a clone.
|
java.lang.Object |
buildWorkingCopyClone(java.lang.Object object,
Session session)
By default use the buildClone.
|
java.lang.String |
toString() |
buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor
public java.lang.Object buildWorkingCopyClone(java.lang.Object object, Session session) throws DescriptorException
AbstractCopyPolicy
buildWorkingCopyClone
in interface CopyPolicy
buildWorkingCopyClone
in class AbstractCopyPolicy
DescriptorException
public java.lang.Object buildClone(java.lang.Object object, Session session) throws DescriptorException
CopyPolicy
buildClone
in interface CopyPolicy
buildClone
in class AbstractCopyPolicy
DescriptorException
public boolean buildsNewInstance()
CopyPolicy
public java.lang.String toString()
toString
in class java.lang.Object