Package org.datanucleus
Class DetachState
- java.lang.Object
-
- org.datanucleus.FetchPlanState
-
- org.datanucleus.DetachState
-
public class DetachState extends FetchPlanState
Holder for the detachment state control for the detachment process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDetachState.Entry
-
Field Summary
Fields Modifier and Type Field Description private ApiAdapterapiAdapter for the API being used.private java.util.Map<java.lang.Object,DetachState.Entry>detachedObjectByIda map for the current execution of detachCopy with detached objects keyed by the object id-
Fields inherited from class org.datanucleus.FetchPlanState
memberNames
-
-
Constructor Summary
Constructors Constructor Description DetachState(ApiAdapter api)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetachState.EntrygetDetachedCopyEntry(java.lang.Object pc)Get any existing detached copy object for the passed in persistableprivate java.lang.ObjectgetKey(java.lang.Object pc)voidsetDetachedCopyEntry(java.lang.Object pc, java.lang.Object detachedPC)Set to the current state a detached copy object-
Methods inherited from class org.datanucleus.FetchPlanState
addMemberName, calculateObjectDepthForMember, getCurrentFetchDepth, getObjectDepthForType, removeLatestMemberName
-
-
-
-
Field Detail
-
detachedObjectById
private java.util.Map<java.lang.Object,DetachState.Entry> detachedObjectById
a map for the current execution of detachCopy with detached objects keyed by the object id
-
api
private ApiAdapter api
Adapter for the API being used.
-
-
Constructor Detail
-
DetachState
public DetachState(ApiAdapter api)
Constructor.- Parameters:
api- The API adapter
-
-
Method Detail
-
setDetachedCopyEntry
public void setDetachedCopyEntry(java.lang.Object pc, java.lang.Object detachedPC)Set to the current state a detached copy object- Parameters:
pc- The persistable objectdetachedPC- the Detached persistable object
-
getDetachedCopyEntry
public DetachState.Entry getDetachedCopyEntry(java.lang.Object pc)
Get any existing detached copy object for the passed in persistable- Parameters:
pc- the persistable object- Returns:
- the Detached PC
-
getKey
private java.lang.Object getKey(java.lang.Object pc)
-
-