public enum TransactionIsolation extends Enum<TransactionIsolation>
Currently, SingleStore DB supports only READ-COMMITTED transaction level.
| Enum Constant and Description |
|---|
READ_COMMITTED
dirty reads are prevented; non-repeatable reads and phantom reads can occur.
|
READ_UNCOMMITTED
dirty reads, non-repeatable reads and phantom reads can occur.
|
REPEATABLE_READ
dirty reads and non-repeatable reads are prevented; phantom reads can occur.
|
SERIALIZABLE
dirty reads, non-repeatable reads and phantom reads are prevented.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionIsolation |
from(String value) |
int |
getLevel() |
String |
getValue() |
static TransactionIsolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionIsolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionIsolation REPEATABLE_READ
public static final TransactionIsolation READ_COMMITTED
public static final TransactionIsolation READ_UNCOMMITTED
public static final TransactionIsolation SERIALIZABLE
public static TransactionIsolation[] values()
for (TransactionIsolation c : TransactionIsolation.values()) System.out.println(c);
public static 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 String getValue()
public int getLevel()
public static TransactionIsolation from(String value)
Copyright © 2025 SingleStore. All rights reserved.