|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IsolationLevel> org.apache.openjpa.persistence.jdbc.IsolationLevel
public enum IsolationLevel
Isolation levels for use in JDBCFetchPlan.setIsolation(org.apache.openjpa.persistence.jdbc.IsolationLevel)
.
Enum Constant Summary | |
---|---|
DEFAULT
|
|
NONE
|
|
READ_COMMITTED
|
|
READ_UNCOMMITTED
|
|
REPEATABLE_READ
|
|
SERIALIZABLE
|
Method Summary | |
---|---|
int |
convertToKernelConstant(int i)
Convert the given integer to an equivalent kernel constant. |
int |
convertToKernelConstant(String s)
Convert the given String to an equivalent kernel constant. |
static IsolationLevel |
fromConnectionConstant(int constant)
|
IsolationLevel |
fromKernelConstant(int i)
|
int |
getConnectionConstant()
|
int |
toKernelConstant()
Convert this receiver to an equivalent kernel constant. |
static int |
toKernelConstantFromString(String s)
|
static IsolationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IsolationLevel[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, 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 IsolationLevel DEFAULT
public static final IsolationLevel NONE
public static final IsolationLevel READ_UNCOMMITTED
public static final IsolationLevel READ_COMMITTED
public static final IsolationLevel REPEATABLE_READ
public static final IsolationLevel SERIALIZABLE
Method Detail |
---|
public static IsolationLevel[] values()
for (IsolationLevel c : IsolationLevel.values()) System.out.println(c);
public static IsolationLevel 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 nullpublic int getConnectionConstant()
public static IsolationLevel fromConnectionConstant(int constant)
public IsolationLevel fromKernelConstant(int i)
public int toKernelConstant()
OpenJPAEnum
toKernelConstant
in interface OpenJPAEnum<IsolationLevel>
public static int toKernelConstantFromString(String s)
public int convertToKernelConstant(String s)
OpenJPAEnum
convertToKernelConstant
in interface OpenJPAEnum<IsolationLevel>
public int convertToKernelConstant(int i)
OpenJPAEnum
convertToKernelConstant
in interface OpenJPAEnum<IsolationLevel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |