|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.JDOFetchGroup
public class JDOFetchGroup
Implementation of a FetchGroup for JDO. Provides a JDO wrapper around the internal org.datanucleus.FetchGroup.
| Field Summary |
|---|
| Fields inherited from interface javax.jdo.FetchGroup |
|---|
ALL, BASIC, DEFAULT, MULTIVALUED, RELATIONSHIP |
| Constructor Summary | |
|---|---|
JDOFetchGroup(FetchGroup fg)
Constructor. |
|
| Method Summary | |
|---|---|
javax.jdo.FetchGroup |
addCategory(java.lang.String categoryName)
Convenience method to add the members in the specified category. |
javax.jdo.FetchGroup |
addMember(java.lang.String memberName)
Method to add a field of the class to the fetch group. |
javax.jdo.FetchGroup |
addMembers(java.lang.String[] members)
Method to add members of the class from the fetch group. |
boolean |
equals(java.lang.Object obj)
|
FetchGroup |
getInternalFetchGroup()
Accessor for the internal fetch group. |
java.util.Set |
getMembers()
Accessor for the members that are in this fetch group. |
java.lang.String |
getName()
Accessor for the group name. |
boolean |
getPostLoad()
Accessor for whether to call postLoad when this group is loaded. |
int |
getRecursionDepth(java.lang.String memberName)
Accessor for the recursion depth for the specified field/property. |
java.lang.Class |
getType()
Accessor for the class that this group is for. |
int |
hashCode()
|
boolean |
isUnmodifiable()
Accessor for whether the FetchGroup is unmodifiable |
javax.jdo.FetchGroup |
removeCategory(java.lang.String categoryName)
Convenience method to remove the members in the specified category. |
javax.jdo.FetchGroup |
removeMember(java.lang.String memberName)
Method to remove a field of the class from the fetch group. |
javax.jdo.FetchGroup |
removeMembers(java.lang.String[] members)
Method to remove members of the class from the fetch group. |
javax.jdo.FetchGroup |
setPostLoad(boolean postLoad)
Mutator for whether the postLoad callback should be called on loading this fetch group. |
javax.jdo.FetchGroup |
setRecursionDepth(java.lang.String memberName,
int recursionDepth)
Method to set the recursion depth for the specified field/property. |
javax.jdo.FetchGroup |
setUnmodifiable()
Method to make the FetchGroup unmodifiable. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDOFetchGroup(FetchGroup fg)
fg - The internal FetchGroup| Method Detail |
|---|
public FetchGroup getInternalFetchGroup()
public java.lang.String getName()
getName in interface javax.jdo.FetchGrouppublic java.lang.Class getType()
getType in interface javax.jdo.FetchGrouppublic javax.jdo.FetchGroup setPostLoad(boolean postLoad)
setPostLoad in interface javax.jdo.FetchGrouppostLoad - Whether the postLoad callback should be called.
public boolean getPostLoad()
getPostLoad in interface javax.jdo.FetchGrouppublic int getRecursionDepth(java.lang.String memberName)
getRecursionDepth in interface javax.jdo.FetchGroupmemberName - Name of field/property
public javax.jdo.FetchGroup setRecursionDepth(java.lang.String memberName,
int recursionDepth)
setRecursionDepth in interface javax.jdo.FetchGroupmemberName - Name of field/propertyrecursionDepth - Recursion depth
public javax.jdo.FetchGroup setUnmodifiable()
setUnmodifiable in interface javax.jdo.FetchGrouppublic boolean isUnmodifiable()
isUnmodifiable in interface javax.jdo.FetchGrouppublic javax.jdo.FetchGroup addCategory(java.lang.String categoryName)
addCategory in interface javax.jdo.FetchGroupcategoryName - The category
public javax.jdo.FetchGroup removeCategory(java.lang.String categoryName)
removeCategory in interface javax.jdo.FetchGroupcategoryName - The category
public java.util.Set getMembers()
getMembers in interface javax.jdo.FetchGrouppublic javax.jdo.FetchGroup addMember(java.lang.String memberName)
addMember in interface javax.jdo.FetchGroupmemberName - Name of the field
javax.jdo.JDOUserException - if the field doesn't exist for this classpublic javax.jdo.FetchGroup removeMember(java.lang.String memberName)
removeMember in interface javax.jdo.FetchGroupmemberName - Name of the field/property
public javax.jdo.FetchGroup addMembers(java.lang.String[] members)
addMembers in interface javax.jdo.FetchGroupmembers - Names of the fields/properties
public javax.jdo.FetchGroup removeMembers(java.lang.String[] members)
removeMembers in interface javax.jdo.FetchGroupmembers - Names of the fields/properties
public boolean equals(java.lang.Object obj)
equals in interface javax.jdo.FetchGroupequals in class java.lang.Objectpublic int hashCode()
hashCode in interface javax.jdo.FetchGrouphashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||