Class InstantiationCopyPolicy
- java.lang.Object
-
- org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
-
- org.eclipse.persistence.descriptors.copying.InstantiationCopyPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CopyPolicy
public class InstantiationCopyPolicy extends AbstractCopyPolicy
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
descriptor
-
-
Constructor Summary
Constructors Constructor Description InstantiationCopyPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectbuildClone(java.lang.Object domainObject, Session session)Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.booleanbuildsNewInstance()Return if this copy policy creates a new instance, vs a clone.java.lang.StringtoString()-
Methods inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyClone, buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor
-
-
-
-
Method Detail
-
buildClone
public java.lang.Object buildClone(java.lang.Object domainObject, Session session) throws DescriptorExceptionDescription 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-