Package org.datanucleus
Class DetachState
java.lang.Object
org.datanucleus.FetchPlanState
org.datanucleus.DetachState
Holder for the detachment state control for the detachment process.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApiAdapter
Adapter for the API being used.private Map
<Object, DetachState.Entry> a map for the current execution of detachCopy with detached objects keyed by the object idFields inherited from class org.datanucleus.FetchPlanState
memberNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet any existing detached copy object for the passed in persistableprivate Object
void
setDetachedCopyEntry
(Object pc, Object detachedPC) Set to the current state a detached copy objectMethods inherited from class org.datanucleus.FetchPlanState
addMemberName, calculateObjectDepthForMember, getCurrentFetchDepth, getObjectDepthForType, removeLatestMemberName
-
Field Details
-
detachedObjectById
a map for the current execution of detachCopy with detached objects keyed by the object id -
api
Adapter for the API being used.
-
-
Constructor Details
-
DetachState
Constructor.- Parameters:
api
- The API adapter
-
-
Method Details
-
setDetachedCopyEntry
Set to the current state a detached copy object- Parameters:
pc
- The persistable objectdetachedPC
- the Detached persistable object
-
getDetachedCopyEntry
Get any existing detached copy object for the passed in persistable- Parameters:
pc
- the persistable object- Returns:
- the Detached PC
-
getKey
-