org.datanucleus.state
Class DetachState

java.lang.Object
  extended by org.datanucleus.state.FetchPlanState
      extended by org.datanucleus.state.DetachState

public class DetachState
extends FetchPlanState

Holder for the detachment state control for the detachment process.


Nested Class Summary
 class DetachState.Entry
           
 
Field Summary
 
Fields inherited from class org.datanucleus.state.FetchPlanState
memberNames
 
Constructor Summary
DetachState(ApiAdapter api)
          Constructor.
 
Method Summary
 DetachState.Entry getDetachedCopyEntry(java.lang.Object pc)
          Get any existing detached copy object for the passed in PersistenceCapable
 void setDetachedCopyEntry(java.lang.Object pc, java.lang.Object detachedPC)
          Set to the current state a detached copy object
 
Methods inherited from class org.datanucleus.state.FetchPlanState
addMemberName, calculateObjectDepthForMember, getCurrentFetchDepth, getObjectDepthForType, removeLatestMemberName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 object
detachedPC - the Detached persistable object

getDetachedCopyEntry

public DetachState.Entry getDetachedCopyEntry(java.lang.Object pc)
Get any existing detached copy object for the passed in PersistenceCapable

Parameters:
pc - the PersistenceCapable of the object searched
Returns:
the Detached PC


Copyright © 2011. All Rights Reserved.