Class LoadFieldManager
java.lang.Object
org.datanucleus.store.fieldmanager.AbstractFieldManager
org.datanucleus.store.fieldmanager.AbstractFetchDepthFieldManager
org.datanucleus.store.fieldmanager.LoadFieldManager
- All Implemented Interfaces:
FieldManager
Field Manager to handle loading all fields of all objects in the fetch plan.
The method in JDOStateManager only loads the fields for that object and so
will only load the DFG fields for objects (hence omitting any non-DFG fields
that are in the FetchPlan that have been omitted due to lazy-loading).
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFetchDepthFieldManager
AbstractFetchDepthFieldManager.EndOfFetchPlanGraphException -
Field Summary
Fields inherited from class AbstractFetchDepthFieldManager
fpClass, secondClassMutableFields, sm, state -
Constructor Summary
ConstructorsConstructorDescriptionLoadFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state) Constructor for a field manager for make transient process. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectendOfGraphOperation(int fieldNumber) Method called when were arrive at the end of a branchprotected ObjectinternalFetchObjectField(int fieldNumber) Method to fetch an object field whether it is SCO collection, PC, or whatever for the fetchplan process.private ObjectprocessContainer(AbstractMemberMetaData mmd, Object container) protected voidUtility method to process the passed persistable object.Methods inherited from class AbstractFetchDepthFieldManager
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringFieldMethods inherited from class AbstractFieldManager
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField
-
Constructor Details
-
LoadFieldManager
public LoadFieldManager(DNStateManager sm, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state) Constructor for a field manager for make transient process.- Parameters:
sm- StateManager of the instance being loadedsecondClassMutableFields- 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 Details
-
processPersistable
Utility method to process the passed persistable object.- Parameters:
pc- The PC object
-
internalFetchObjectField
Method to fetch an object field whether it is SCO collection, PC, or whatever for the fetchplan process.- Specified by:
internalFetchObjectFieldin classAbstractFetchDepthFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The object
-
processContainer
-
endOfGraphOperation
Method called when were arrive at the end of a branch- Specified by:
endOfGraphOperationin classAbstractFetchDepthFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- Object to return
-