EclipseLink1.0 - 20080707 API Reference

Class InstantiationCopyPolicy

  extended by org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
      extended by org.eclipse.persistence.descriptors.copying.InstantiationCopyPolicy
All Implemented Interfaces:, java.lang.Cloneable, CopyPolicy

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.

See Also:
Serialized Form

Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
Constructor Summary
Method Summary
 java.lang.Object buildClone(java.lang.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 a new instance is created or a clone.
 java.lang.String toString()
Methods inherited from class org.eclipse.persistence.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyClone, buildWorkingCopyCloneFromPrimaryKeyObject, buildWorkingCopyCloneFromRow, buildWorkingCopyCloneFromRow, clone, getDescriptor, initialize, setDescriptor
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public InstantiationCopyPolicy()
Method Detail


public java.lang.Object buildClone(java.lang.Object domainObject,
                                   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


public boolean buildsNewInstance()
Description copied from class: AbstractCopyPolicy
Return if a new instance is created or a clone.

Specified by:
buildsNewInstance in interface CopyPolicy
Specified by:
buildsNewInstance in class AbstractCopyPolicy


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

EclipseLink1.0 - 20080707 API Reference