public enum IsolationLevel extends Enum<IsolationLevel> implements OpenJPAEnum<IsolationLevel>
JDBCFetchPlan.setIsolation(org.apache.openjpa.persistence.jdbc.IsolationLevel)
.Enum Constant and Description |
---|
DEFAULT |
NONE |
READ_COMMITTED |
READ_UNCOMMITTED |
REPEATABLE_READ |
SERIALIZABLE |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- 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>
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.