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

public Class PersistenceEntityCopyPolicy

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

Purpose: This is the default copy policy when weaving is used. It creates a copy by creating a shallow clone of the object using the weaved _persistence_shallow_clone() method.

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 object, 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 Object
public String
toString()

Overrides java.lang.Object.toString.

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

Constructor Detail

PersistenceEntityCopyPolicyback to summary
public PersistenceEntityCopyPolicy()

Method Detail

buildCloneback to summary
public Object buildClone(Object object, 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
buildWorkingCopyCloneback to summary
public Object buildWorkingCopyClone(Object object, Session session) throws DescriptorException

Overrides org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy.buildWorkingCopyClone.

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

Doc from org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy.buildWorkingCopyClone.

By default use the buildClone.

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