public static enum Fetch.Style extends Enum<Fetch.Style>
The type or style of fetch. For the moment we limit this to join and select, though technically subselect would be valid here as as well; however, to support subselect here would require major changes to the subselect loading code (which is needed for other things as well anyway).
Enum Constant and Description |
---|
JOIN
Fetch via a join
|
SELECT
Fetch via a subsequent select
|
Modifier and Type | Method and Description |
---|---|
static Fetch.Style |
parse(String name)
Parses a style given an externalized string representation
|
String |
toString() |
static Fetch.Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fetch.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fetch.Style JOIN
Fetch via a join
public static final Fetch.Style SELECT
Fetch via a subsequent select
public static Fetch.Style[] values()
for (Fetch.Style c : Fetch.Style.values()) System.out.println(c);
public static Fetch.Style 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 nullpublic String toString()
toString
in class Enum<Fetch.Style>
public static Fetch.Style parse(String name)
Parses a style given an externalized string representation
name
- The externalized representationJOIN
is returned if not recognizedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.