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, setDescriptor
public Object buildClone(Object domainObject, Session session) throws DescriptorException
CopyPolicy
buildClone
in interface CopyPolicy
buildClone
in class AbstractCopyPolicy
DescriptorException
public boolean buildsNewInstance()
CopyPolicy
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.