Class ObjectCopyingPolicy

  • All Implemented Interfaces:, java.lang.Cloneable

    public class ObjectCopyingPolicy
    extends CopyGroup
    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.


    • 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
    TOPLink/Java 3.0
    • Constructor Detail

      • ObjectCopyingPolicy

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