public final class TransactionIsolationLevel extends Object
Connection's transaction isolation level constants. This class
is needed primarily because the Connection class uses int constants, instead of Enums.| Modifier and Type | Class and Description |
|---|---|
static class |
TransactionIsolationLevel.Level
Enum mapping to the constants in
Connection. |
| Modifier and Type | Method and Description |
|---|---|
static int |
getLevel(String level)
Translates a transaction isolation level string to the corresponding int constant.
|
static void |
validate(String level)
Validates that the given level is either null or one of the possible transaction isolation levels.
|
public static final String CONF_KEY
public static int getLevel(@Nullable String level)
Connection.TRANSACTION_NONE. Defaults to Connection.TRANSACTION_SERIALIZABLE
if the given input is null.level - String version of the level.Connection for the level.Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.