Enum Constant and Description |
---|
AUTO
The platform will choose an optimal mode
|
BATCH
Fetching by one separate select for all referenced entities
|
JOIN
Fetching in the same select by joining with referenced table
|
UNDEFINED
Fetching will be performed according to JPA rules, which effectively means loading by a separate select
|
Modifier and Type | Method and Description |
---|---|
static FetchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FetchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FetchMode AUTO
public static final FetchMode UNDEFINED
public static final FetchMode JOIN
public static final FetchMode BATCH
public static FetchMode[] values()
for (FetchMode c : FetchMode.values()) System.out.println(c);
public static FetchMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null