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
- Object
- Enum<TransactionIsolation>
- 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
DEFAULT | The server’s own default. |
READ_UNCOMMITTED | Dirty reads allowed. |
READ_COMMITTED | Only committed data is read. |
REPEATABLE_READ | Rows read once read the same again. |
SERIALIZABLE | As if the transactions ran one after another. |
Methods
public static TransactionIsolation[] values() | |
public static TransactionIsolation valueOf(String name) |
Inherited methods
Enum constant details
DEFAULT
DEFAULTThe server’s own default.
READ_UNCOMMITTED
READ_UNCOMMITTEDDirty reads allowed.
READ_COMMITTED
READ_COMMITTEDOnly committed data is read.
REPEATABLE_READ
REPEATABLE_READRows read once read the same again.
SERIALIZABLE
SERIALIZABLEAs if the transactions ran one after another.
Method details
values
public static TransactionIsolation[] values()valueOf
public static TransactionIsolation valueOf(String name)