|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.FetchGroup
public class FetchGroup
Captures fetch group metadata.
Field Summary | |
---|---|
(package private) static FetchGroup |
ALL
Standard "all" fetch group. |
(package private) static FetchGroup |
DEFAULT
Standard default fetch group. |
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. |
Constructor Summary | |
---|---|
FetchGroup(ClassMetaData cm,
String name)
Constructor; supply immutable name. |
Method Summary | |
---|---|
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. |
(package private) void |
copy(FetchGroup fg)
Copy state from the given fetch group. |
boolean |
equals(Object other)
Affirms equality if the other has the same name and declaring type. |
Set |
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 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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
static final FetchGroup DEFAULT
static final FetchGroup ALL
Constructor Detail |
---|
FetchGroup(ClassMetaData cm, String name)
name
- must not by null or empty.Method Detail |
---|
void copy(FetchGroup fg)
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 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)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |