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 class
DetachState.Entry
-
Field Summary
-
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.Entry
getDetachedCopyEntry(Object pc)
Get any existing detached copy object for the passed in persistablevoid
setDetachedCopyEntry(Object pc, Object detachedPC)
Set to the current state a detached copy object-
Methods inherited from class org.datanucleus.FetchPlanState
addMemberName, calculateObjectDepthForMember, getCurrentFetchDepth, getObjectDepthForType, removeLatestMemberName
-
-
-
-
Constructor Detail
-
DetachState
public DetachState(ApiAdapter api)
Constructor.- Parameters:
api
- The API adapter
-
-
Method Detail
-
setDetachedCopyEntry
public void setDetachedCopyEntry(Object pc, 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(Object pc)
Get any existing detached copy object for the passed in persistable- Parameters:
pc
- the persistable object- Returns:
- the Detached PC
-
-