|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AutofetchMode>
com.avaje.ebean.config.AutofetchMode
public enum AutofetchMode
The mode for determining if Autofetch will be used for a given query when
Query.setAutofetch(boolean) has not been explicitly set on a query.
The explicit control of Query.setAutofetch(boolean) will always take
precedence. This mode is used when this has not been explicitly set on a
query.
| Enum Constant Summary | |
|---|---|
DEFAULT_OFF
Don't implicitly use Autofetch. |
|
DEFAULT_ON
Use Autofetch implicitly. |
|
DEFAULT_ONIFEMPTY
Implicitly use Autofetch if the query has not got either select() or join() defined. |
|
| Method Summary | |
|---|---|
static AutofetchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AutofetchMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AutofetchMode DEFAULT_OFF
public static final AutofetchMode DEFAULT_ON
public static final AutofetchMode DEFAULT_ONIFEMPTY
| Method Detail |
|---|
public static AutofetchMode[] values()
for (AutofetchMode c : AutofetchMode.values()) System.out.println(c);
public static AutofetchMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||