Module org.eclipse.persistence.core
Class InstantiationCopyPolicy
java.lang.Object
org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
org.eclipse.persistence.descriptors.copying.InstantiationCopyPolicy
- All Implemented Interfaces:
Serializable
,Cloneable
,CopyPolicy
Purpose: This is the default copy policy. It creates a copy by creating a new instance of the object and then using the mappings specified for the object to populate the object.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
descriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildClone
(Object domainObject, Session session) Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.boolean
Return if this copy policy creates a new instance, vs a clone.toString()
Methods inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyClone, buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor
-
Constructor Details
-
InstantiationCopyPolicy
public InstantiationCopyPolicy()
-
-
Method Details
-
buildClone
Description copied from interface:CopyPolicy
Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.- Specified by:
buildClone
in interfaceCopyPolicy
- Specified by:
buildClone
in classAbstractCopyPolicy
- Throws:
DescriptorException
-
buildsNewInstance
public boolean buildsNewInstance()Description copied from interface:CopyPolicy
Return if this copy policy creates a new instance, vs a clone. -
toString
-