Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.descriptors.copying
Class InstantiationCopyPolicy

java.lang.Object
  extended by oracle.toplink.descriptors.copying.AbstractCopyPolicy
      extended by oracle.toplink.descriptors.copying.InstantiationCopyPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, CopyPolicy

public class InstantiationCopyPolicy
extends AbstractCopyPolicy

Purpose: Creates a copy through creating a new instance.

See Also:
Serialized Form

Constructor Summary
InstantiationCopyPolicy()
           
 
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 oracle.toplink.descriptors.copying.AbstractCopyPolicy
buildWorkingCopyClone, buildWorkingCopyCloneFromPrimaryKeyObject, buildWorkingCopyCloneFromRow, buildWorkingCopyCloneFromRow, initialize, setDescriptor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstantiationCopyPolicy

public InstantiationCopyPolicy()
Method Detail

buildClone

public java.lang.Object buildClone(java.lang.Object domainObject,
                                   Session session)
                            throws DescriptorException
Description copied from interface: oracle.toplink.descriptors.copying.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 class: oracle.toplink.descriptors.copying.AbstractCopyPolicy
Return if a new instance is created or a clone.

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

toString

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

Copyright © 1998, 2010, Oracle. All Rights Reserved.