public class FetchGroup
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEPTH_INFINITE
Infinite depth.
|
static java.lang.String |
NAME_ALL
Name of the "all" fetch group.
|
static java.lang.String |
NAME_DEFAULT
Name of the default fetch group.
|
static int |
RECURSION_DEPTH_DEFAULT
Default field recursion depth.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addContainedBy(FetchGroup parent)
Adds this receiver as one of the included fetch groups of the given
parent.
|
void |
addDeclaredInclude(java.lang.String fgName)
Includes given fetch group within this receiver.
|
boolean |
equals(java.lang.Object other)
Affirms equality if the other has the same name and declaring type.
|
java.util.Set |
getContainedBy()
Gets the name of the fetch groups in which this receiver has been
included.
|
java.lang.String[] |
getDeclaredIncludes()
Return the fetch group names declared included by this group.
|
int |
getDeclaredRecursionDepth(FieldMetaData fm)
Return the recursion depth declared for the given field, or
0 if none.
|
FieldMetaData[] |
getDeclaredRecursionDepthFields()
Return the fields with declared recursion depths in this group.
|
java.lang.String |
getName()
Fetch group name.
|
int |
getRecursionDepth(FieldMetaData fm)
Recursion depth for the given field.
|
int |
hashCode() |
boolean |
includes(java.lang.String fgName,
boolean recurse)
Affirms if given fetch group is included by this receiver.
|
boolean |
isPostLoad()
Whether loading this fetch group causes a post-load callback on the
loaded instance.
|
boolean |
isPostLoadExplicit()
Whether the post-load value is declared for this group.
|
void |
resolve()
Resolve and validate fetch group metadata.
|
void |
setPostLoad(boolean flag)
Whether loading this fetch group causes a post-load callback on the
loaded instance.
|
void |
setRecursionDepth(FieldMetaData fm,
int depth)
Recursion depth for the given field.
|
java.lang.String |
toString() |
public static final java.lang.String NAME_DEFAULT
public static final java.lang.String NAME_ALL
public static final int RECURSION_DEPTH_DEFAULT
public static final int DEPTH_INFINITE
public java.lang.String getName()
public void addDeclaredInclude(java.lang.String fgName)
public boolean includes(java.lang.String fgName, boolean recurse)
recurse
- if true then recursively checks within the included
fecth groupspublic boolean addContainedBy(FetchGroup parent)
includes(String, boolean)
,
addDeclaredInclude(String)
public java.util.Set getContainedBy()
addContainedBy(FetchGroup)
public java.lang.String[] getDeclaredIncludes()
public void setRecursionDepth(FieldMetaData fm, int depth)
public int getRecursionDepth(FieldMetaData fm)
public int getDeclaredRecursionDepth(FieldMetaData fm)
public FieldMetaData[] getDeclaredRecursionDepthFields()
public void setPostLoad(boolean flag)
public boolean isPostLoad()
public boolean isPostLoadExplicit()
public void resolve()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object