setMaxFetchDepth(fetchDepth) - JDO FetchPlan's method

Method
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
Returns:
the FetchPlan
Since:
JDO 2.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.