public enum FetchStrategy extends Enum<FetchStrategy>
| Enum Constant and Description |
|---|
JOIN
A strategy that defines that the target elements are joined and fetched along in the source query.
|
SELECT
A strategy that defines that the target elements are selected in separate queries.
|
SUBSELECT
A strategy that defines that the target elements are selected in a single query containing the source query as subquery.
|
| Modifier and Type | Method and Description |
|---|---|
static FetchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FetchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FetchStrategy JOIN
public static final FetchStrategy SELECT
BatchFetch.size(), the query select multiple elements at once.public static final FetchStrategy SUBSELECT
public static FetchStrategy[] values()
for (FetchStrategy c : FetchStrategy.values()) System.out.println(c);
public static FetchStrategy 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–2018 Blazebit. All rights reserved.