Class ObjectCopyingPolicy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ObjectCopyingPolicy
    extends CopyGroup
    Deprecated.
    use CopyGroup instead.
    Purpose: Define how an object is to be copied.

    Description: This is for usage with the object copying feature, not the unit of work. This is useful for copying an entire object graph as part of the host application's logic.

    Responsibilities:

    • Indicate through CASCADE levels the depth relationships will copied.
    • Indicate if PK attributes should be copied with existing value or should be reset.
    See Also:
    Session.copyObject(Object, ObjectCopyingPolicy), Serialized Form
    Since:
    TOPLink/Java 3.0
    • Constructor Detail

      • ObjectCopyingPolicy

        public ObjectCopyingPolicy()
        Deprecated.
        PUBLIC: Return a new copying policy. By default the policy cascades privately owned parts and nulls primary keys.