public class JDOFetchPlan extends Object implements javax.jdo.FetchPlan, Serializable
Constructor and Description |
---|
JDOFetchPlan(org.datanucleus.FetchPlan fp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.jdo.FetchPlan |
addGroup(String group)
Method to add a group to the fetch plan.
|
javax.jdo.FetchPlan |
clearGroups()
Method to clear the fetch plan groups.
|
int |
getDetachmentOptions()
Accessor for the detachment options.
|
Class[] |
getDetachmentRootClasses()
Accessor for the detachment root classes.
|
Collection |
getDetachmentRoots()
Accessor for the detachment roots.
|
int |
getFetchSize()
Accessor for the fetch size.
|
Set |
getGroups()
Accessor for the groups.
|
org.datanucleus.FetchPlan |
getInternalFetchPlan()
Accessor for the internal fetch plan.
|
int |
getMaxFetchDepth()
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 |
setGroup(String group)
Method to set the FetchPlan to a single group.
|
javax.jdo.FetchPlan |
setGroups(Collection groups)
Method to set the groups to the passed collection.
|
javax.jdo.FetchPlan |
setGroups(String... groups)
Method to set the groups to the passed array.
|
javax.jdo.FetchPlan |
setMaxFetchDepth(int depth)
Method to set the max fetch depth.
|
public JDOFetchPlan(org.datanucleus.FetchPlan fp)
fp
- FetchPlanpublic Set getGroups()
getGroups
in interface javax.jdo.FetchPlan
public javax.jdo.FetchPlan addGroup(String group)
addGroup
in interface javax.jdo.FetchPlan
group
- The group to addpublic javax.jdo.FetchPlan clearGroups()
clearGroups
in interface javax.jdo.FetchPlan
public javax.jdo.FetchPlan removeGroup(String group)
removeGroup
in interface javax.jdo.FetchPlan
group
- The group to removepublic javax.jdo.FetchPlan setGroup(String group)
setGroup
in interface javax.jdo.FetchPlan
group
- The group to setpublic javax.jdo.FetchPlan setGroups(Collection groups)
setGroups
in interface javax.jdo.FetchPlan
groups
- Collection of groupspublic javax.jdo.FetchPlan setGroups(String... groups)
setGroups
in interface javax.jdo.FetchPlan
groups
- Collection of groupspublic int getFetchSize()
getFetchSize
in interface javax.jdo.FetchPlan
public javax.jdo.FetchPlan setFetchSize(int size)
setFetchSize
in interface javax.jdo.FetchPlan
size
- The sizepublic int getMaxFetchDepth()
getMaxFetchDepth
in interface javax.jdo.FetchPlan
public javax.jdo.FetchPlan setMaxFetchDepth(int depth)
setMaxFetchDepth
in interface javax.jdo.FetchPlan
depth
- The depthpublic int getDetachmentOptions()
getDetachmentOptions
in interface javax.jdo.FetchPlan
public Class[] getDetachmentRootClasses()
getDetachmentRootClasses
in interface javax.jdo.FetchPlan
public Collection getDetachmentRoots()
getDetachmentRoots
in interface javax.jdo.FetchPlan
public javax.jdo.FetchPlan setDetachmentOptions(int options)
setDetachmentOptions
in interface javax.jdo.FetchPlan
options
- Detachment optionspublic javax.jdo.FetchPlan setDetachmentRootClasses(Class... rootClasses)
setDetachmentRootClasses
in interface javax.jdo.FetchPlan
rootClasses
- The detachment root classespublic javax.jdo.FetchPlan setDetachmentRoots(Collection roots)
setDetachmentRoots
in interface javax.jdo.FetchPlan
roots
- Detachment rootspublic org.datanucleus.FetchPlan getInternalFetchPlan()
Copyright © 2016. All rights reserved.