org.apache.openjpa.persistence.jdbc
public enum FetchMode extends java.lang.Enum<FetchMode> implements OpenJPAEnum<FetchMode>
| Modifier and Type | Method and Description |
|---|---|
int |
convertToKernelConstant(int i)
Convert the given integer to an equivalent kernel constant.
|
int |
convertToKernelConstant(java.lang.String s)
Convert the given String to an equivalent kernel constant.
|
int |
toKernelConstant()
Convert this receiver to an equivalent kernel constant.
|
static int |
toKernelConstantFromString(java.lang.String s) |
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 NONE
public static final FetchMode JOIN
public static final FetchMode PARALLEL
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 nullpublic int toKernelConstant()
OpenJPAEnumtoKernelConstant in interface OpenJPAEnum<FetchMode>public int convertToKernelConstant(java.lang.String s)
OpenJPAEnumconvertToKernelConstant in interface OpenJPAEnum<FetchMode>public int convertToKernelConstant(int i)
OpenJPAEnumconvertToKernelConstant in interface OpenJPAEnum<FetchMode>public static int toKernelConstantFromString(java.lang.String s)