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