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.
descriptor| Constructor and Description |
|---|
InstantiationCopyPolicy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
buildClone(java.lang.Object domainObject,
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.String |
toString() |
buildWorkingCopyClone, buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptorpublic java.lang.Object buildClone(java.lang.Object domainObject,
Session session)
throws DescriptorException
CopyPolicybuildClone in interface CopyPolicybuildClone in class AbstractCopyPolicyDescriptorExceptionpublic boolean buildsNewInstance()
CopyPolicypublic java.lang.String toString()
toString in class java.lang.Object