public enum AutofetchMode extends Enum<AutofetchMode>
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final AutofetchMode DEFAULT_OFF
public static final AutofetchMode DEFAULT_ON
public static final AutofetchMode DEFAULT_ONIFEMPTY
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 nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.