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 in
Connection.-
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 type with the specified name.values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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
-