Package org.eclipse.persistence.sessions
Class ObjectCopyingPolicy
- java.lang.Object
-
- org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,ClassDescriptor>
-
- org.eclipse.persistence.queries.AttributeGroup
-
- org.eclipse.persistence.sessions.CopyGroup
-
- org.eclipse.persistence.sessions.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
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.sessions.CopyGroup
CASCADE_ALL_PARTS, CASCADE_PRIVATE_PARTS, CASCADE_TREE, copies, depth, NO_CASCADE, session, shouldResetPrimaryKey, shouldResetVersion
-
Fields inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup
allsubclasses, isValidated, items, name, subClasses, superClassGroup, type, typeName
-
-
Constructor Summary
Constructors Constructor Description ObjectCopyingPolicy()
Deprecated.PUBLIC: Return a new copying policy.
-
Method Summary
-
Methods inherited from class org.eclipse.persistence.sessions.CopyGroup
addAttribute, addAttribute, cascadeAllParts, cascadePrivateParts, cascadeTree, clone, dontCascade, getCopies, getDepth, getGroup, getSession, isCopyGroup, newGroup, setCopies, setDepth, setSession, setShouldResetPrimaryKey, setShouldResetVersion, shouldCascade, shouldCascadeAllParts, shouldCascadePrivateParts, shouldCascadeTree, shouldResetPrimaryKey, shouldResetVersion, toStringAdditionalInfo
-
Methods inherited from class org.eclipse.persistence.queries.AttributeGroup
addAttribute, findGroup, getItem, isConcurrent, isLoadGroup, isSupersetOf, newItem, newItem, toCopyGroup, toCopyGroup, toFetchGroup, toFetchGroup, toLoadGroup, toLoadGroup
-
Methods inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup
addAttribute, addAttribute, addAttributeKey, addAttributes, clone, containsAttribute, containsAttributeInternal, convert, convertClassNamesToClasses, equals, getAllItems, getAttributeNames, getItem, getItems, getName, getSubClassGroups, getType, getTypeName, hashCode, hasInheritance, hasItems, insertSubClass, isFetchGroup, isSupersetOf, isValidated, removeAttribute, setAllSubclasses, setAttributeNames, setName, toString, toStringItems, toStringPath
-
-