|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.state.FetchPlanState
public class FetchPlanState
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.
| Field Summary | |
|---|---|
protected java.util.List |
fetchFieldNames
List of field names in the graph. |
| Constructor Summary | |
|---|---|
FetchPlanState()
|
|
| Method Summary | |
|---|---|
void |
addFieldName(java.lang.String field)
Method to add an field name to the list since it is being processed |
int |
getCurrentFetchDepth()
Accessor for the object graph depth currently |
int |
getObjectDepthForType(java.lang.String fieldName)
Accessor for the current depth for the specified field name |
void |
removeLatestFieldName()
Method to remove the latest field name from the list since it is now processed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List fetchFieldNames
| Constructor Detail |
|---|
public FetchPlanState()
| Method Detail |
|---|
public void addFieldName(java.lang.String field)
field - The field to addpublic void removeLatestFieldName()
public int getCurrentFetchDepth()
public int getObjectDepthForType(java.lang.String fieldName)
fieldName - The name of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||