EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

org.eclipse.persistence.descriptors.copying
Class PersistenceEntityCopyPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
      extended by org.eclipse.persistence.descriptors.copying.PersistenceEntityCopyPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, CopyPolicy

public class PersistenceEntityCopyPolicy
extends AbstractCopyPolicy

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
descriptor
 
Constructor Summary
PersistenceEntityCopyPolicy()
           
 
Method Summary
 java.lang.Object buildClone(java.lang.Object object, 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.Object buildWorkingCopyClone(java.lang.Object object, Session session)
          By default use the buildClone.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyCloneFromPrimaryKeyObject, buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceEntityCopyPolicy

public PersistenceEntityCopyPolicy()
Method Detail

buildWorkingCopyClone

public java.lang.Object buildWorkingCopyClone(java.lang.Object object,
                                              Session session)
                                       throws DescriptorException
Description copied from class: AbstractCopyPolicy
By default use the buildClone.

Specified by:
buildWorkingCopyClone in interface CopyPolicy
Overrides:
buildWorkingCopyClone in class AbstractCopyPolicy
Throws:
DescriptorException

buildClone

public java.lang.Object buildClone(java.lang.Object object,
                                   Session session)
                            throws DescriptorException
Description copied from interface: CopyPolicy
Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.

Specified by:
buildClone in interface CopyPolicy
Specified by:
buildClone in class AbstractCopyPolicy
Throws:
DescriptorException

buildsNewInstance

public boolean buildsNewInstance()
Description copied from interface: CopyPolicy
Return if this copy policy creates a new instance, vs a clone.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference