Top Description Fields Constructors Methods
org.eclipse.persistence.descriptors.copying

public Class InstantiationCopyPolicy

extends AbstractCopyPolicy
Class Inheritance
Imports
org.eclipse.persistence.exceptions.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.sessions.*

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.

Field Summary

Inherited from org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy:
descriptor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
buildClone(Object domainObject, Session session)

Implements abstract org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy.buildClone.

Implements org.eclipse.persistence.descriptors.copying.CopyPolicy.buildClone.

Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.
public boolean
buildsNewInstance()

Implements org.eclipse.persistence.descriptors.copying.CopyPolicy.buildsNewInstance.

Return if this copy policy creates a new instance, vs a clone.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy:
buildWorkingCopyClonebuildWorkingCopyCloneFromRowclonegetDescriptorinitializesetDescriptor

Constructor Detail

InstantiationCopyPolicyback to summary
public InstantiationCopyPolicy()

Method Detail

buildCloneback to summary
public Object buildClone(Object domainObject, Session session) throws DescriptorException

Implements abstract org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy.buildClone.

Implements org.eclipse.persistence.descriptors.copying.CopyPolicy.buildClone.

Doc from org.eclipse.persistence.descriptors.copying.CopyPolicy.buildClone.

Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.

Annotations
@Override
buildsNewInstanceback to summary
public boolean buildsNewInstance()

Implements org.eclipse.persistence.descriptors.copying.CopyPolicy.buildsNewInstance.

Doc from org.eclipse.persistence.descriptors.copying.CopyPolicy.buildsNewInstance.

Return if this copy policy creates a new instance, vs a clone.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override