|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.state.FetchPlanState
public class FetchPlanState
Holder for the state control for FetchPlan processing. Maintains a list of the member names being fetched. The first item in the List will be the root. When a new branch of the graph is processed the member name is added, and it is removed once it has been processed. This provides a means of always knowing the depth in the current graph, and also of allowing detection of recursion of member names.
| Field Summary | |
|---|---|
protected java.util.List<java.lang.String> |
memberNames
List of member names in the graph. |
| Constructor Summary | |
|---|---|
FetchPlanState()
|
|
| Method Summary | |
|---|---|
void |
addMemberName(java.lang.String memberName)
Method to add a member name to the list since it is being processed |
protected static int |
calculateObjectDepthForMember(java.util.List<java.lang.String> memberNames,
java.lang.String memberName)
|
int |
getCurrentFetchDepth()
Accessor for the object graph depth currently |
int |
getObjectDepthForType(java.lang.String memberName)
Accessor for the current depth for the specified member name. |
void |
removeLatestMemberName()
Method to remove the latest member 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<java.lang.String> memberNames
| Constructor Detail |
|---|
public FetchPlanState()
| Method Detail |
|---|
public void addMemberName(java.lang.String memberName)
memberName - The member to addpublic void removeLatestMemberName()
public int getCurrentFetchDepth()
public int getObjectDepthForType(java.lang.String memberName)
memberName - The name of the field/property
protected static int calculateObjectDepthForMember(java.util.List<java.lang.String> memberNames,
java.lang.String memberName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||