| java.lang.Object org.jpox.state.FetchPlanState
All known Subclasses: org.jpox.state.DetachState,
FetchPlanState | public class FetchPlanState (Code) | | Holder for the state control for FetchPlan processing.
Maintains a list of the field names being fetched. The first item in the List will be the root.
When a new branch of the graph of processed the field name is added, and is removed when it is
processed. This provides a means of always knowing the depth in the current graph, and also of
allowing detection of recursion of field names.
version: $Revision: 1.6 $ |
fetchFieldNames | protected List fetchFieldNames(Code) | | List of field names in the graph. The first is the root of the tree, and fields are added as they are encountered
and removed when they are finished with.
|
addFieldName | public void addFieldName(String field)(Code) | | Method to add an field name to the list since it is being processed
Parameters: field - The field to add |
getCurrentFetchDepth | public int getCurrentFetchDepth()(Code) | | Accessor for the object graph depth currently
The graph depth |
getObjectDepthForType | public int getObjectDepthForType(String fieldName)(Code) | | Accessor for the current depth for the specified field name
Parameters: fieldName - The name of the field The depth for this field name |
removeLatestFieldName | public void removeLatestFieldName()(Code) | | Method to remove the latest field name from the list since it is now processed
|
|
|