Package org.datanucleus.api.jdo
Class JDOFetchPlan
java.lang.Object
org.datanucleus.api.jdo.JDOFetchPlan
- All Implemented Interfaces:
Serializable
,javax.jdo.FetchPlan
Implementation of a FetchPlan for JDO.
Provides a JDO wrapper around the internal org.datanucleus.FetchPlan.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.datanucleus.FetchPlan
private static final long
Fields inherited from interface javax.jdo.FetchPlan
ALL, DEFAULT, DETACH_LOAD_FIELDS, DETACH_UNLOAD_FIELDS, FETCH_SIZE_GREEDY, FETCH_SIZE_OPTIMAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jdo.FetchPlan
Method to add a group to the fetch plan.javax.jdo.FetchPlan
Method to clear the fetch plan groups.int
Accessor for the detachment options.Class[]
Accessor for the detachment root classes.Accessor for the detachment roots.int
Accessor for the fetch size.Accessor for the groups.org.datanucleus.FetchPlan
Accessor for the internal fetch plan.int
Accessor for the max fetch depth.javax.jdo.FetchPlan
removeGroup
(String group) Method to remove a group from the FetchPlan.javax.jdo.FetchPlan
setDetachmentOptions
(int options) Method to set the detachment options.javax.jdo.FetchPlan
setDetachmentRootClasses
(Class... rootClasses) Method to set the detachment root classes.javax.jdo.FetchPlan
setDetachmentRoots
(Collection roots) Method to set the detachment roots.javax.jdo.FetchPlan
setFetchSize
(int size) Method to set the fetch size (large result sets).javax.jdo.FetchPlan
Method to set the FetchPlan to a single group.javax.jdo.FetchPlan
Method to set the groups to the passed array.javax.jdo.FetchPlan
setGroups
(Collection groups) Method to set the groups to the passed collection.javax.jdo.FetchPlan
setMaxFetchDepth
(int depth) Method to set the max fetch depth.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fp
org.datanucleus.FetchPlan fp
-
-
Constructor Details
-
JDOFetchPlan
public JDOFetchPlan(org.datanucleus.FetchPlan fp) Constructor.- Parameters:
fp
- FetchPlan
-
-
Method Details
-
getGroups
Accessor for the groups.- Specified by:
getGroups
in interfacejavax.jdo.FetchPlan
- Returns:
- The groups
-
addGroup
Method to add a group to the fetch plan.- Specified by:
addGroup
in interfacejavax.jdo.FetchPlan
- Parameters:
group
- The group to add- Returns:
- The updated FetchPlan
-
clearGroups
public javax.jdo.FetchPlan clearGroups()Method to clear the fetch plan groups.- Specified by:
clearGroups
in interfacejavax.jdo.FetchPlan
- Returns:
- The updated FetchPlan
-
removeGroup
Method to remove a group from the FetchPlan.- Specified by:
removeGroup
in interfacejavax.jdo.FetchPlan
- Parameters:
group
- The group to remove- Returns:
- The updated FetchPlan
-
setGroup
Method to set the FetchPlan to a single group.- Specified by:
setGroup
in interfacejavax.jdo.FetchPlan
- Parameters:
group
- The group to set- Returns:
- The updated FetchPlan
-
setGroups
Method to set the groups to the passed collection.- Specified by:
setGroups
in interfacejavax.jdo.FetchPlan
- Parameters:
groups
- Collection of groups- Returns:
- Updated FetchPlan
-
setGroups
Method to set the groups to the passed array.- Specified by:
setGroups
in interfacejavax.jdo.FetchPlan
- Parameters:
groups
- Collection of groups- Returns:
- Updated FetchPlan
-
getFetchSize
public int getFetchSize()Accessor for the fetch size.- Specified by:
getFetchSize
in interfacejavax.jdo.FetchPlan
- Returns:
- The fetch size
-
setFetchSize
public javax.jdo.FetchPlan setFetchSize(int size) Method to set the fetch size (large result sets).- Specified by:
setFetchSize
in interfacejavax.jdo.FetchPlan
- Parameters:
size
- The size- Returns:
- Updated FetchPlan
-
getMaxFetchDepth
public int getMaxFetchDepth()Accessor for the max fetch depth.- Specified by:
getMaxFetchDepth
in interfacejavax.jdo.FetchPlan
- Returns:
- Max fetch depth
-
setMaxFetchDepth
public javax.jdo.FetchPlan setMaxFetchDepth(int depth) Method to set the max fetch depth.- Specified by:
setMaxFetchDepth
in interfacejavax.jdo.FetchPlan
- Parameters:
depth
- The depth- Returns:
- Updated FetchPlan
-
getDetachmentOptions
public int getDetachmentOptions()Accessor for the detachment options.- Specified by:
getDetachmentOptions
in interfacejavax.jdo.FetchPlan
- Returns:
- Detachment options.
-
getDetachmentRootClasses
Accessor for the detachment root classes.- Specified by:
getDetachmentRootClasses
in interfacejavax.jdo.FetchPlan
- Returns:
- Detachment root classes
-
getDetachmentRoots
Accessor for the detachment roots.- Specified by:
getDetachmentRoots
in interfacejavax.jdo.FetchPlan
- Returns:
- Detachment roots
-
setDetachmentOptions
public javax.jdo.FetchPlan setDetachmentOptions(int options) Method to set the detachment options.- Specified by:
setDetachmentOptions
in interfacejavax.jdo.FetchPlan
- Parameters:
options
- Detachment options- Returns:
- Updated FetchPlan
-
setDetachmentRootClasses
Method to set the detachment root classes.- Specified by:
setDetachmentRootClasses
in interfacejavax.jdo.FetchPlan
- Parameters:
rootClasses
- The detachment root classes- Returns:
- Updated FetchPlan
-
setDetachmentRoots
Method to set the detachment roots.- Specified by:
setDetachmentRoots
in interfacejavax.jdo.FetchPlan
- Parameters:
roots
- Detachment roots- Returns:
- Updated FetchPlan
-
getInternalFetchPlan
public org.datanucleus.FetchPlan getInternalFetchPlan()Accessor for the internal fetch plan.- Returns:
- Internal fetch plan
-