Package io.agroal.api.configuration
Enum AgroalConnectionFactoryConfiguration.TransactionIsolation
- java.lang.Object
-
- java.lang.Enum<AgroalConnectionFactoryConfiguration.TransactionIsolation>
-
- io.agroal.api.configuration.AgroalConnectionFactoryConfiguration.TransactionIsolation
-
- All Implemented Interfaces:
AgroalConnectionFactoryConfiguration.IsolationLevel
,Serializable
,Comparable<AgroalConnectionFactoryConfiguration.TransactionIsolation>
- Enclosing interface:
- AgroalConnectionFactoryConfiguration
public static enum AgroalConnectionFactoryConfiguration.TransactionIsolation extends Enum<AgroalConnectionFactoryConfiguration.TransactionIsolation> implements AgroalConnectionFactoryConfiguration.IsolationLevel
The default transaction isolation levels, defined inConnection
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
READ_COMMITTED
READ_UNCOMMITTED
REPEATABLE_READ
SERIALIZABLE
UNDEFINED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation UNDEFINED
-
NONE
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation NONE
-
READ_UNCOMMITTED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation READ_UNCOMMITTED
-
READ_COMMITTED
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation READ_COMMITTED
-
REPEATABLE_READ
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation REPEATABLE_READ
-
SERIALIZABLE
public static final AgroalConnectionFactoryConfiguration.TransactionIsolation SERIALIZABLE
-
-
Method Detail
-
values
public static AgroalConnectionFactoryConfiguration.TransactionIsolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgroalConnectionFactoryConfiguration.TransactionIsolation c : AgroalConnectionFactoryConfiguration.TransactionIsolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgroalConnectionFactoryConfiguration.TransactionIsolation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromLevel
public static AgroalConnectionFactoryConfiguration.TransactionIsolation fromLevel(int level)
-
level
public int level()
Description copied from interface:AgroalConnectionFactoryConfiguration.IsolationLevel
The value for transaction isolation level.- Specified by:
level
in interfaceAgroalConnectionFactoryConfiguration.IsolationLevel
-
isDefined
public boolean isDefined()
Description copied from interface:AgroalConnectionFactoryConfiguration.IsolationLevel
If a level is not defined it will not be set by the pool (it will use the JDBC driver default).- Specified by:
isDefined
in interfaceAgroalConnectionFactoryConfiguration.IsolationLevel
-
-