|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FetchPlan
A FetchPlan object allows you to customize how to fetch relations. It can customize the maximum depth of the eager relations to be fetched.
Field Summary | |
---|---|
static int |
DEPTH_INFINITE
The default maximum fetch depth. |
Method Summary | |
---|---|
int |
getMaxFetchDepth()
Get the maximum fetch depth of eager relationships to retrieve. |
FetchPlan |
setMaxFetchDepth(int depth)
Set the maximum fetch depth of eager relationships to retrieve. |
Field Detail |
---|
static final int DEPTH_INFINITE
DEPTH_INFINITE
,
eager relations of all levels will be fetched.
Method Detail |
---|
FetchPlan setMaxFetchDepth(int depth)
For example, if the maximum fetch depth is set to 1, then only the first-level eager relations will be fetched with the fetch operations. If it is set to 0, then no relations will be fetched.
By default the max fetch depth is DEPTH_INFINITE
, which means eager relations
of all levels will be fetched.
depth
- the maximum fetch depthint getMaxFetchDepth()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |