org.jpox.store.fieldmanager
Class DetachFieldManager
java.lang.Object
org.jpox.store.fieldmanager.AbstractFieldManager
org.jpox.store.fieldmanager.AbstractFetchFieldManager
org.jpox.store.fieldmanager.DetachFieldManager
- All Implemented Interfaces:
- FieldConsumer, FieldManager, FieldSupplier
public class DetachFieldManager
- extends AbstractFetchFieldManager
FieldManager to handle the detachment of fields with persistable objects.
- Version:
- $Revision: 1.10 $
|
Method Summary |
protected java.lang.Object |
endOfGraphOperation(int fieldNumber)
Method to throw and EndOfFetchPlanGraphException since we're at the end of a branch in the tree. |
protected java.lang.Object |
internalFetchObjectField(int fieldNumber)
Method to fetch an object field whether it is collection/map, PC, or whatever for the detachment process. |
protected java.lang.Object |
processPersistable(java.lang.Object pc)
Utility method to process the passed persistable object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DetachFieldManager
public DetachFieldManager(StateManager sm,
boolean[] secondClassMutableFields,
FetchPlan.FetchPlanForClass fpClass,
FetchPlanState state,
boolean copy)
- Constructor for a field manager for detachment.
- Parameters:
sm - the StateManager of the instance being detached. An instance in Persistent or Transactional statesecondClassMutableFields - The second class mutable fields for the class of this objectfpClass - Fetch Plan for the class of this instancestate - State object to hold any pertinent controls for the detachment processcopy - Whether to create detached COPIES or just detach in situ
processPersistable
protected java.lang.Object processPersistable(java.lang.Object pc)
- Utility method to process the passed persistable object.
- Parameters:
pc - The PC object
internalFetchObjectField
protected java.lang.Object internalFetchObjectField(int fieldNumber)
- Method to fetch an object field whether it is collection/map, PC, or whatever for the detachment process.
- Specified by:
internalFetchObjectField in class AbstractFetchFieldManager
- Parameters:
fieldNumber - Number of the field
- Returns:
- The object
endOfGraphOperation
protected java.lang.Object endOfGraphOperation(int fieldNumber)
- Method to throw and EndOfFetchPlanGraphException since we're at the end of a branch in the tree.
- Specified by:
endOfGraphOperation in class AbstractFetchFieldManager
- Parameters:
fieldNumber - Number of the field
- Returns:
- Object to return
Copyright © -2008 . All Rights Reserved.