Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public enum TransactionIsolation

  1. Object
  2. Enum<TransactionIsolation>
  3. TransactionIsolation

ImplementsComparable<TransactionIsolation>

The transaction isolation a caller asks a wire client for. The names are the SQL standard’s with _ for the space, which is how the clients spell them to the server.

Enum constants

DEFAULTThe server’s own default.
READ_UNCOMMITTEDDirty reads allowed.
READ_COMMITTEDOnly committed data is read.
REPEATABLE_READRows read once read the same again.
SERIALIZABLEAs if the transactions ran one after another.

Methods

public static TransactionIsolation[] values()
public static TransactionIsolation valueOf(String name)

Inherited methods

Enum constant details

DEFAULT

DEFAULT
The server’s own default.

READ_UNCOMMITTED

READ_UNCOMMITTED
Dirty reads allowed.

READ_COMMITTED

READ_COMMITTED
Only committed data is read.

REPEATABLE_READ

REPEATABLE_READ
Rows read once read the same again.

SERIALIZABLE

SERIALIZABLE
As if the transactions ran one after another.

Method details

values

public static TransactionIsolation[] values()

valueOf

public static TransactionIsolation valueOf(String name)