|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.JPAFetchPlan
public class JPAFetchPlan
Implementation of a FetchPlan for JDO. Provides a JDO wrapper around the internal org.datanucleus.FetchPlan.
| Constructor Summary | |
|---|---|
JPAFetchPlan(org.datanucleus.FetchPlan fp)
Constructor. |
|
| Method Summary | |
|---|---|
JPAFetchPlan |
addGroup(java.lang.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. |
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. |
org.datanucleus.FetchPlan |
getInternalFetchPlan()
Accessor for the internal fetch plan. |
int |
getMaxFetchDepth()
Accessor for the max fetch depth. |
JPAFetchPlan |
removeGroup(java.lang.String group)
Method to remove a group from the FetchPlan. |
JPAFetchPlan |
setDetachmentOptions(int options)
Method to set the detachment options. |
JPAFetchPlan |
setDetachmentRootClasses(java.lang.Class... rootClasses)
Method to set the detachment root classes. |
JPAFetchPlan |
setDetachmentRoots(java.util.Collection roots)
Method to set the detachment roots. |
JPAFetchPlan |
setFetchSize(int size)
Method to set the fetch size (large result sets). |
JPAFetchPlan |
setGroup(java.lang.String group)
Method to set the FetchPlan to a single group. |
JPAFetchPlan |
setGroups(java.util.Collection groups)
Method to set the groups to the passed collection. |
JPAFetchPlan |
setGroups(java.lang.String... groups)
Method to set the groups to the passed array. |
JPAFetchPlan |
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 JPAFetchPlan(org.datanucleus.FetchPlan fp)
fp - FetchPlan| Method Detail |
|---|
public java.util.Set getGroups()
public JPAFetchPlan addGroup(java.lang.String group)
group - The group to add
public JPAFetchPlan clearGroups()
public JPAFetchPlan removeGroup(java.lang.String group)
group - The group to remove
public JPAFetchPlan setGroup(java.lang.String group)
group - The group to set
public JPAFetchPlan setGroups(java.util.Collection groups)
groups - Collection of groups
public JPAFetchPlan setGroups(java.lang.String... groups)
groups - Collection of groups
public int getFetchSize()
public JPAFetchPlan setFetchSize(int size)
size - The size
public int getMaxFetchDepth()
public JPAFetchPlan setMaxFetchDepth(int depth)
depth - The depth
public int getDetachmentOptions()
public java.lang.Class[] getDetachmentRootClasses()
public java.util.Collection getDetachmentRoots()
public JPAFetchPlan setDetachmentOptions(int options)
options - Detachment options
public JPAFetchPlan setDetachmentRootClasses(java.lang.Class... rootClasses)
rootClasses - The detachment root classes
public JPAFetchPlan setDetachmentRoots(java.util.Collection roots)
roots - Detachment roots
public org.datanucleus.FetchPlan getInternalFetchPlan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||