|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.JDOFetchPlan
public class JDOFetchPlan
Implementation of a FetchPlan for JDO. Provides a JDO wrapper around the internal org.datanucleus.FetchPlan.
| Field Summary |
|---|
| Fields inherited from interface javax.jdo.FetchPlan |
|---|
ALL, DEFAULT, DETACH_LOAD_FIELDS, DETACH_UNLOAD_FIELDS, FETCH_SIZE_GREEDY, FETCH_SIZE_OPTIMAL |
| Constructor Summary | |
|---|---|
JDOFetchPlan(FetchPlan fp)
Constructor. |
|
| Method Summary | |
|---|---|
javax.jdo.FetchPlan |
addGroup(java.lang.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. |
java.lang.Class[] |
getDetachmentRootClasses()
Accessor for the detachment root classes. |
java.util.Collection |
getDetachmentRoots()
Accessor for the detachment roots. |
int |
getFetchSize()
Accessor for the fetch size. |
java.util.Set |
getGroups()
Accessor for the groups. |
int |
getMaxFetchDepth()
Accessor for the max fetch depth. |
javax.jdo.FetchPlan |
removeGroup(java.lang.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(java.lang.Class... rootClasses)
Method to set the detachment root classes. |
javax.jdo.FetchPlan |
setDetachmentRoots(java.util.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(java.lang.String group)
Method to set the FetchPlan to a single group. |
javax.jdo.FetchPlan |
setGroups(java.util.Collection groups)
Method to set the groups to the passed collection. |
javax.jdo.FetchPlan |
setGroups(java.lang.String... groups)
Method to set the groups to the passed array. |
javax.jdo.FetchPlan |
setMaxFetchDepth(int depth)
Method to set the max fetch depth. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDOFetchPlan(FetchPlan fp)
fp - FetchPlan| Method Detail |
|---|
public java.util.Set getGroups()
getGroups in interface javax.jdo.FetchPlanpublic javax.jdo.FetchPlan addGroup(java.lang.String group)
addGroup in interface javax.jdo.FetchPlangroup - The group to add
public javax.jdo.FetchPlan clearGroups()
clearGroups in interface javax.jdo.FetchPlanpublic javax.jdo.FetchPlan removeGroup(java.lang.String group)
removeGroup in interface javax.jdo.FetchPlangroup - The group to remove
public javax.jdo.FetchPlan setGroup(java.lang.String group)
setGroup in interface javax.jdo.FetchPlangroup - The group to set
public javax.jdo.FetchPlan setGroups(java.util.Collection groups)
setGroups in interface javax.jdo.FetchPlangroups - Collection of groups
public javax.jdo.FetchPlan setGroups(java.lang.String... groups)
setGroups in interface javax.jdo.FetchPlangroups - Collection of groups
public int getFetchSize()
getFetchSize in interface javax.jdo.FetchPlanpublic javax.jdo.FetchPlan setFetchSize(int size)
setFetchSize in interface javax.jdo.FetchPlansize - The size
public int getMaxFetchDepth()
getMaxFetchDepth in interface javax.jdo.FetchPlanpublic javax.jdo.FetchPlan setMaxFetchDepth(int depth)
setMaxFetchDepth in interface javax.jdo.FetchPlandepth - The depth
public int getDetachmentOptions()
getDetachmentOptions in interface javax.jdo.FetchPlanpublic java.lang.Class[] getDetachmentRootClasses()
getDetachmentRootClasses in interface javax.jdo.FetchPlanpublic java.util.Collection getDetachmentRoots()
getDetachmentRoots in interface javax.jdo.FetchPlanpublic javax.jdo.FetchPlan setDetachmentOptions(int options)
setDetachmentOptions in interface javax.jdo.FetchPlanoptions - Detachment options
public javax.jdo.FetchPlan setDetachmentRootClasses(java.lang.Class... rootClasses)
setDetachmentRootClasses in interface javax.jdo.FetchPlanrootClasses - The detachment root classes
public javax.jdo.FetchPlan setDetachmentRoots(java.util.Collection roots)
setDetachmentRoots in interface javax.jdo.FetchPlanroots - Detachment roots
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||