org.datanucleus.store.fieldmanager
Class LoadFieldManager

java.lang.Object
  extended by org.datanucleus.store.fieldmanager.AbstractFieldManager
      extended by org.datanucleus.store.fieldmanager.AbstractFetchFieldManager
          extended by org.datanucleus.store.fieldmanager.LoadFieldManager
All Implemented Interfaces:
FieldConsumer, FieldManager, FieldSupplier

public class LoadFieldManager
extends AbstractFetchFieldManager

Field Manager to handle loading all fields of all objects in the fetch plan. The method in StateManagerImpl 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).

Version:
$Revision: 1.7 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.fieldmanager.AbstractFetchFieldManager
AbstractFetchFieldManager.EndOfFetchPlanGraphException
 
Field Summary
 
Fields inherited from class org.datanucleus.store.fieldmanager.AbstractFetchFieldManager
fpClass, secondClassMutableFields, sm, state
 
Constructor Summary
LoadFieldManager(StateManager sm, boolean[] secondClassMutableFields, FetchPlan.FetchPlanForClass fpClass, FetchPlanState state)
          Constructor for a field manager for make transient process.
 
Method Summary
protected  java.lang.Object endOfGraphOperation(int fieldNumber)
          Method called when were arrive at the end of a branch
protected  java.lang.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(java.lang.Object pc)
          Utility method to process the passed persistable object.
 
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFetchFieldManager
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadFieldManager

public LoadFieldManager(StateManager sm,
                        boolean[] secondClassMutableFields,
                        FetchPlan.FetchPlanForClass fpClass,
                        FetchPlanState state)
Constructor for a field manager for make transient process.

Parameters:
sm - the StateManager of the instance being loaded
secondClassMutableFields - The second class mutable fields for the class of this object
fpClass - Fetch Plan for the class of this instance
state - State object to hold any pertinent controls for the fetchplan process
Method Detail

processPersistable

protected void 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 SCO collection, PC, or whatever for the fetchplan 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 called when were arrive at the end of a branch

Specified by:
endOfGraphOperation in class AbstractFetchFieldManager
Parameters:
fieldNumber - Number of the field
Returns:
Object to return


Copyright © 2009. All Rights Reserved.