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