org.eclipse.persistence.sessions
Class ObjectCopyingPolicy
java.lang.Object
org.eclipse.persistence.queries.AttributeGroup
org.eclipse.persistence.sessions.CopyGroup
org.eclipse.persistence.sessions.ObjectCopyingPolicy
- All Implemented Interfaces:
- Serializable, Cloneable
Deprecated. use CopyGroup instead.
public class ObjectCopyingPolicy
- extends CopyGroup
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.
- Since:
- TOPLink/Java 3.0
- See Also:
Session.copyObject(Object, ObjectCopyingPolicy)
,
Serialized Form
Methods inherited from class org.eclipse.persistence.sessions.CopyGroup |
addAttribute, addAttribute, cascadeAllParts, cascadePrivateParts, cascadeTree, clone, dontCascade, getCopies, getDepth, getGroup, getSession, isCopyGroup, setCopies, setDepth, setSession, setShouldResetPrimaryKey, setShouldResetVersion, shouldCascade, shouldCascadeAllParts, shouldCascadePrivateParts, shouldCascadeTree, shouldResetPrimaryKey, shouldResetVersion |
Methods inherited from class org.eclipse.persistence.queries.AttributeGroup |
addAttribute, addAttributes, containsAttribute, equals, getAttributeNames, getItem, getItems, getName, hasItems, isFetchGroup, isLoadGroup, isSupersetOf, removeAttribute, setAttributeNames, setName, toCopyGroup, toFetchGroup, toLoadGroup, toString |
ObjectCopyingPolicy
public ObjectCopyingPolicy()
- Deprecated.
- PUBLIC:
Return a new copying policy.
By default the policy cascades privately owned parts and nulls primary keys.