public static enum AgroalConnectionFactoryConfiguration.TransactionIsolation extends Enum<AgroalConnectionFactoryConfiguration.TransactionIsolation> implements AgroalConnectionFactoryConfiguration.IsolationLevel
Connection
.Enum Constant and Description |
---|
NONE |
READ_COMMITTED |
READ_UNCOMMITTED |
REPEATABLE_READ |
SERIALIZABLE |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
static AgroalConnectionFactoryConfiguration.TransactionIsolation |
fromLevel(int level) |
boolean |
isDefined()
If a level is not defined it will not be set by the pool (it will use the JDBC driver default).
|
int |
level()
The value for transaction isolation level.
|
static AgroalConnectionFactoryConfiguration.TransactionIsolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgroalConnectionFactoryConfiguration.TransactionIsolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation UNDEFINED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation NONE
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation READ_UNCOMMITTED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation READ_COMMITTED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation REPEATABLE_READ
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation SERIALIZABLE
public static AgroalConnectionFactoryConfiguration.TransactionIsolation[] values()
for (AgroalConnectionFactoryConfiguration.TransactionIsolation c : AgroalConnectionFactoryConfiguration.TransactionIsolation.values()) System.out.println(c);
public static AgroalConnectionFactoryConfiguration.TransactionIsolation 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 static AgroalConnectionFactoryConfiguration.TransactionIsolation fromLevel(int level)
public int level()
AgroalConnectionFactoryConfiguration.IsolationLevel
level
in interface AgroalConnectionFactoryConfiguration.IsolationLevel
public boolean isDefined()
AgroalConnectionFactoryConfiguration.IsolationLevel
isDefined
in interface AgroalConnectionFactoryConfiguration.IsolationLevel
Copyright © 2020 JBoss by Red Hat. All rights reserved.