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.

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.datanucleus.state.FetchPlanState
fetchFieldNames
 
Constructor Summary
DetachState(ApiAdapter api)
          Constructor.
 
Method Summary
 java.lang.Object getDetachedCopyObject(java.lang.Object pc)
          Set to the current state a detached copy object
 void setDetachedCopyObject(java.lang.Object detachedPC, java.lang.Object id)
          Set to the current state a detached copy object
 
Methods inherited from class org.datanucleus.state.FetchPlanState
addFieldName, getCurrentFetchDepth, getObjectDepthForType, removeLatestFieldName
 
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

setDetachedCopyObject

public void setDetachedCopyObject(java.lang.Object detachedPC,
                                  java.lang.Object id)
Set to the current state a detached copy object

Parameters:
detachedPC - the Detached persistable object
id - The id to key against. If this is null, we treat as embedded

getDetachedCopyObject

public java.lang.Object getDetachedCopyObject(java.lang.Object pc)
Set to the current state a detached copy object

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


Copyright © 2009. All Rights Reserved.