public interface TransactionIsolation
Modifier and Type | Field and Description |
---|---|
static int |
TRANSACTION_NONE
A constant indicating that transactions are not supported.
|
static int |
TRANSACTION_READ_COMMITTED
A constant indicating that
dirty reads are prevented; non-repeatable reads and phantom
reads can occur.
|
static int |
TRANSACTION_READ_UNCOMMITTED
A constant indicating that
dirty reads, non-repeatable reads and phantom reads can occur.
|
static int |
TRANSACTION_REPEATABLE_READ
A constant indicating that
dirty reads and non-repeatable reads are prevented; phantom
reads can occur.
|
static int |
TRANSACTION_SERIALIZABLE
A constant indicating that
dirty reads, non-repeatable reads and phantom reads are prevented.
|
static final int TRANSACTION_NONE
static final int TRANSACTION_READ_UNCOMMITTED
static final int TRANSACTION_READ_COMMITTED
static final int TRANSACTION_REPEATABLE_READ
static final int TRANSACTION_SERIALIZABLE
TRANSACTION_REPEATABLE_READ
and further prohibits the
situation where one transaction reads all rows that satisfy
a WHERE
condition, a second transaction inserts a row that
satisfies that WHERE
condition, and the first transaction
rereads for the same condition, retrieving the additional
"phantom" row in the second read.Copyright © 2019. All rights reserved.