public class FetchGroup extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEPTH_INFINITE
Infinite depth.
|
static String |
NAME_ALL
Name of the "all" fetch group.
|
static 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(String fgName)
Includes given fetch group within this receiver.
|
boolean |
equals(Object other)
Affirms equality if the other has the same name and declaring type.
|
Set<String> |
getContainedBy()
Gets the name of the fetch groups in which this receiver has been
included.
|
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.
|
String |
getName()
Fetch group name.
|
int |
getRecursionDepth(FieldMetaData fm)
Recursion depth for the given field.
|
int |
hashCode() |
boolean |
includes(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 meta-data.
|
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.
|
String |
toString() |
public static final String NAME_DEFAULT
public static final String NAME_ALL
public static final int RECURSION_DEPTH_DEFAULT
public static final int DEPTH_INFINITE
public String getName()
public void addDeclaredInclude(String fgName)
public boolean includes(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 Set<String> getContainedBy()
addContainedBy(FetchGroup)
public 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(Object other)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.