Module eclipselink
Class PersistenceEntityCopyPolicy
java.lang.Object
org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
org.eclipse.persistence.descriptors.copying.PersistenceEntityCopyPolicy
- All Implemented Interfaces:
Serializable,Cloneable,CopyPolicy
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.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
descriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildClone(Object object, Session session) Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.booleanReturn if this copy policy creates a new instance, vs a clone.buildWorkingCopyClone(Object object, Session session) Methods inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor, toString
-
Constructor Details
-
PersistenceEntityCopyPolicy
public PersistenceEntityCopyPolicy()
-
-
Method Details
-
buildWorkingCopyClone
Description copied from class:AbstractCopyPolicyBy default, use theAbstractCopyPolicy.buildClone(java.lang.Object, org.eclipse.persistence.sessions.Session).- Specified by:
buildWorkingCopyClonein interfaceCopyPolicy- Overrides:
buildWorkingCopyClonein classAbstractCopyPolicy- Throws:
DescriptorException
-
buildClone
Description copied from interface:CopyPolicyReturn a shallow clone of the object for usage with object copying, or unit of work backup cloning.- Specified by:
buildClonein interfaceCopyPolicy- Specified by:
buildClonein classAbstractCopyPolicy- Throws:
DescriptorException
-
buildsNewInstance
public boolean buildsNewInstance()Description copied from interface:CopyPolicyReturn if this copy policy creates a new instance, vs a clone.
-