JDO Method
in javax.jdo.FetchPlan

FetchPlan setMaxFetchDepth(
  int fetchDepth
)


Set the maximum fetch depth when fetching. A value of 0 has no meaning and will throw a JDOUserException. A value of -1 means that no limit is placed on fetching. A positive integer will result in that number of references from the initial object to be fetched.
Parameters:
fetchDepth - the depth
Return:
the FetchPlan
Since:
JDO 2.0