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 |
|---|---|
Object |
buildClone(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.
|
Object |
buildWorkingCopyClone(Object object,
Session session)
By default use the buildClone.
|
String |
toString() |
buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptorpublic Object buildWorkingCopyClone(Object object, Session session) throws DescriptorException
AbstractCopyPolicybuildWorkingCopyClone in interface CopyPolicybuildWorkingCopyClone in class AbstractCopyPolicyDescriptorExceptionpublic Object buildClone(Object object, Session session) throws DescriptorException
CopyPolicybuildClone in interface CopyPolicybuildClone in class AbstractCopyPolicyDescriptorExceptionpublic boolean buildsNewInstance()
CopyPolicyCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.