public class JDOFetchGroup extends Object implements javax.jdo.FetchGroup, Serializable
Constructor and Description |
---|
JDOFetchGroup(org.datanucleus.FetchGroup fg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.jdo.FetchGroup |
addCategory(String categoryName)
Convenience method to add the members in the specified category.
|
javax.jdo.FetchGroup |
addMember(String memberName)
Method to add a field of the class to the fetch group.
|
javax.jdo.FetchGroup |
addMembers(String... members)
Method to add members of the class from the fetch group.
|
boolean |
equals(Object obj) |
org.datanucleus.FetchGroup |
getInternalFetchGroup()
Accessor for the internal fetch group.
|
Set |
getMembers()
Accessor for the members that are in this fetch group.
|
String |
getName()
Accessor for the group name.
|
boolean |
getPostLoad()
Accessor for whether to call postLoad when this group is loaded.
|
int |
getRecursionDepth(String memberName)
Accessor for the recursion depth for the specified field/property.
|
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(String categoryName)
Convenience method to remove the members in the specified category.
|
javax.jdo.FetchGroup |
removeMember(String memberName)
Method to remove a field of the class from the fetch group.
|
javax.jdo.FetchGroup |
removeMembers(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(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.
|
String |
toString() |
public JDOFetchGroup(org.datanucleus.FetchGroup fg)
fg
- The internal FetchGrouppublic org.datanucleus.FetchGroup getInternalFetchGroup()
public String getName()
getName
in interface javax.jdo.FetchGroup
public Class getType()
getType
in interface javax.jdo.FetchGroup
public javax.jdo.FetchGroup setPostLoad(boolean postLoad)
setPostLoad
in interface javax.jdo.FetchGroup
postLoad
- Whether the postLoad callback should be called.public boolean getPostLoad()
getPostLoad
in interface javax.jdo.FetchGroup
public int getRecursionDepth(String memberName)
getRecursionDepth
in interface javax.jdo.FetchGroup
memberName
- Name of field/propertypublic javax.jdo.FetchGroup setRecursionDepth(String memberName, int recursionDepth)
setRecursionDepth
in interface javax.jdo.FetchGroup
memberName
- Name of field/propertyrecursionDepth
- Recursion depthpublic javax.jdo.FetchGroup setUnmodifiable()
setUnmodifiable
in interface javax.jdo.FetchGroup
public boolean isUnmodifiable()
isUnmodifiable
in interface javax.jdo.FetchGroup
public javax.jdo.FetchGroup addCategory(String categoryName)
addCategory
in interface javax.jdo.FetchGroup
categoryName
- The categorypublic javax.jdo.FetchGroup removeCategory(String categoryName)
removeCategory
in interface javax.jdo.FetchGroup
categoryName
- The categorypublic Set getMembers()
getMembers
in interface javax.jdo.FetchGroup
public javax.jdo.FetchGroup addMember(String memberName)
addMember
in interface javax.jdo.FetchGroup
memberName
- Name of the fieldjavax.jdo.JDOUserException
- if the field doesn't exist for this classpublic javax.jdo.FetchGroup removeMember(String memberName)
removeMember
in interface javax.jdo.FetchGroup
memberName
- Name of the field/propertypublic javax.jdo.FetchGroup addMembers(String... members)
addMembers
in interface javax.jdo.FetchGroup
members
- Names of the fields/propertiespublic javax.jdo.FetchGroup removeMembers(String... members)
removeMembers
in interface javax.jdo.FetchGroup
members
- Names of the fields/propertiespublic boolean equals(Object obj)
public int hashCode()
Copyright © 2020. All rights reserved.