Package org.datanucleus.api.jdo
Class JDOFetchPlan
- java.lang.Object
-
- org.datanucleus.api.jdo.JDOFetchPlan
-
- All Implemented Interfaces:
java.io.Serializable,javax.jdo.FetchPlan
public class JDOFetchPlan extends java.lang.Object implements javax.jdo.FetchPlan, java.io.SerializableImplementation of a FetchPlan for JDO. Provides a JDO wrapper around the internal org.datanucleus.FetchPlan.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.datanucleus.FetchPlanfpprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JDOFetchPlan(org.datanucleus.FetchPlan fp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jdo.FetchPlanaddGroup(java.lang.String group)Method to add a group to the fetch plan.javax.jdo.FetchPlanclearGroups()Method to clear the fetch plan groups.intgetDetachmentOptions()Accessor for the detachment options.java.lang.Class[]getDetachmentRootClasses()Accessor for the detachment root classes.java.util.CollectiongetDetachmentRoots()Accessor for the detachment roots.intgetFetchSize()Accessor for the fetch size.java.util.SetgetGroups()Accessor for the groups.org.datanucleus.FetchPlangetInternalFetchPlan()Accessor for the internal fetch plan.intgetMaxFetchDepth()Accessor for the max fetch depth.javax.jdo.FetchPlanremoveGroup(java.lang.String group)Method to remove a group from the FetchPlan.javax.jdo.FetchPlansetDetachmentOptions(int options)Method to set the detachment options.javax.jdo.FetchPlansetDetachmentRootClasses(java.lang.Class... rootClasses)Method to set the detachment root classes.javax.jdo.FetchPlansetDetachmentRoots(java.util.Collection roots)Method to set the detachment roots.javax.jdo.FetchPlansetFetchSize(int size)Method to set the fetch size (large result sets).javax.jdo.FetchPlansetGroup(java.lang.String group)Method to set the FetchPlan to a single group.javax.jdo.FetchPlansetGroups(java.lang.String... groups)Method to set the groups to the passed array.javax.jdo.FetchPlansetGroups(java.util.Collection groups)Method to set the groups to the passed collection.javax.jdo.FetchPlansetMaxFetchDepth(int depth)Method to set the max fetch depth.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
fp
org.datanucleus.FetchPlan fp
-
-
Method Detail
-
getGroups
public java.util.Set getGroups()
Accessor for the groups.- Specified by:
getGroupsin interfacejavax.jdo.FetchPlan- Returns:
- The groups
-
addGroup
public javax.jdo.FetchPlan addGroup(java.lang.String group)
Method to add a group to the fetch plan.- Specified by:
addGroupin 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:
clearGroupsin interfacejavax.jdo.FetchPlan- Returns:
- The updated FetchPlan
-
removeGroup
public javax.jdo.FetchPlan removeGroup(java.lang.String group)
Method to remove a group from the FetchPlan.- Specified by:
removeGroupin interfacejavax.jdo.FetchPlan- Parameters:
group- The group to remove- Returns:
- The updated FetchPlan
-
setGroup
public javax.jdo.FetchPlan setGroup(java.lang.String group)
Method to set the FetchPlan to a single group.- Specified by:
setGroupin interfacejavax.jdo.FetchPlan- Parameters:
group- The group to set- Returns:
- The updated FetchPlan
-
setGroups
public javax.jdo.FetchPlan setGroups(java.util.Collection groups)
Method to set the groups to the passed collection.- Specified by:
setGroupsin interfacejavax.jdo.FetchPlan- Parameters:
groups- Collection of groups- Returns:
- Updated FetchPlan
-
setGroups
public javax.jdo.FetchPlan setGroups(java.lang.String... groups)
Method to set the groups to the passed array.- Specified by:
setGroupsin interfacejavax.jdo.FetchPlan- Parameters:
groups- Collection of groups- Returns:
- Updated FetchPlan
-
getFetchSize
public int getFetchSize()
Accessor for the fetch size.- Specified by:
getFetchSizein 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:
setFetchSizein interfacejavax.jdo.FetchPlan- Parameters:
size- The size- Returns:
- Updated FetchPlan
-
getMaxFetchDepth
public int getMaxFetchDepth()
Accessor for the max fetch depth.- Specified by:
getMaxFetchDepthin interfacejavax.jdo.FetchPlan- Returns:
- Max fetch depth
-
setMaxFetchDepth
public javax.jdo.FetchPlan setMaxFetchDepth(int depth)
Method to set the max fetch depth.- Specified by:
setMaxFetchDepthin interfacejavax.jdo.FetchPlan- Parameters:
depth- The depth- Returns:
- Updated FetchPlan
-
getDetachmentOptions
public int getDetachmentOptions()
Accessor for the detachment options.- Specified by:
getDetachmentOptionsin interfacejavax.jdo.FetchPlan- Returns:
- Detachment options.
-
getDetachmentRootClasses
public java.lang.Class[] getDetachmentRootClasses()
Accessor for the detachment root classes.- Specified by:
getDetachmentRootClassesin interfacejavax.jdo.FetchPlan- Returns:
- Detachment root classes
-
getDetachmentRoots
public java.util.Collection getDetachmentRoots()
Accessor for the detachment roots.- Specified by:
getDetachmentRootsin interfacejavax.jdo.FetchPlan- Returns:
- Detachment roots
-
setDetachmentOptions
public javax.jdo.FetchPlan setDetachmentOptions(int options)
Method to set the detachment options.- Specified by:
setDetachmentOptionsin interfacejavax.jdo.FetchPlan- Parameters:
options- Detachment options- Returns:
- Updated FetchPlan
-
setDetachmentRootClasses
public javax.jdo.FetchPlan setDetachmentRootClasses(java.lang.Class... rootClasses)
Method to set the detachment root classes.- Specified by:
setDetachmentRootClassesin interfacejavax.jdo.FetchPlan- Parameters:
rootClasses- The detachment root classes- Returns:
- Updated FetchPlan
-
setDetachmentRoots
public javax.jdo.FetchPlan setDetachmentRoots(java.util.Collection roots)
Method to set the detachment roots.- Specified by:
setDetachmentRootsin 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
-
-