Package io.agroal.api.configuration
Enum Class 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>,java.lang.constant.Constable
- Enclosing interface:
- AgroalConnectionFactoryConfiguration
public static enum AgroalConnectionFactoryConfiguration.TransactionIsolation
extends Enum<AgroalConnectionFactoryConfiguration.TransactionIsolation>
implements AgroalConnectionFactoryConfiguration.IsolationLevel
The default transaction isolation levels, defined in
Connection.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfromLevel(int level) booleanIf a level is not defined it will not be set by the pool (it will use the JDBC driver default).intlevel()The value for transaction isolation level.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
-
NONE
-
READ_UNCOMMITTED
-
READ_COMMITTED
-
REPEATABLE_READ
-
SERIALIZABLE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromLevel
-
level
public int level()Description copied from interface:AgroalConnectionFactoryConfiguration.IsolationLevelThe value for transaction isolation level.- Specified by:
levelin interfaceAgroalConnectionFactoryConfiguration.IsolationLevel
-
isDefined
public boolean isDefined()Description copied from interface:AgroalConnectionFactoryConfiguration.IsolationLevelIf a level is not defined it will not be set by the pool (it will use the JDBC driver default).- Specified by:
isDefinedin interfaceAgroalConnectionFactoryConfiguration.IsolationLevel
-