Class MakeTransientFieldManager
- java.lang.Object
-
- org.datanucleus.store.fieldmanager.AbstractFieldManager
-
- org.datanucleus.store.fieldmanager.AbstractFetchDepthFieldManager
-
- org.datanucleus.store.fieldmanager.MakeTransientFieldManager
-
- All Implemented Interfaces:
FieldManager
public class MakeTransientFieldManager extends AbstractFetchDepthFieldManager
Field Manager to handle the making transient of fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.fieldmanager.AbstractFetchDepthFieldManager
AbstractFetchDepthFieldManager.EndOfFetchPlanGraphException
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.fieldmanager.AbstractFetchDepthFieldManager
fpClass, secondClassMutableFields, sm, state
-
-
Constructor Summary
Constructors Constructor Description MakeTransientFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)
Constructor for a field manager for make transient process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
endOfGraphOperation(int fieldNumber)
Method to throw and EndOfFetchPlanGraphException since we're at the end of a branch in the tree.protected Object
internalFetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever for the fetchplan process.protected void
processPersistable(Object pc)
Utility method to process the passed persistable object.-
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFetchDepthFieldManager
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField
-
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFieldManager
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField
-
-
-
-
Constructor Detail
-
MakeTransientFieldManager
public MakeTransientFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)
Constructor for a field manager for make transient process.- Parameters:
sm
- 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 fetchplan process
-
-
Method Detail
-
processPersistable
protected void processPersistable(Object pc)
Utility method to process the passed persistable object.- Parameters:
pc
- The PC object
-
internalFetchObjectField
protected Object internalFetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever for the fetchplan process.- Specified by:
internalFetchObjectField
in classAbstractFetchDepthFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The object
-
endOfGraphOperation
protected 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 classAbstractFetchDepthFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- Object to return
-
-