public interface TransactionDefinition
Connection.beginTransaction(TransactionDefinition)
.Connection.beginTransaction(TransactionDefinition)
,
Option
Modifier and Type | Field and Description |
---|---|
static Option<IsolationLevel> |
ISOLATION_LEVEL
Isolation level requested for the transaction.
|
static Option<Duration> |
LOCK_WAIT_TIMEOUT
Lock wait timeout.
|
static Option<String> |
NAME
Name of the transaction.
|
static Option<Boolean> |
READ_ONLY
The transaction mutability (i.e.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(Option<T> option)
Retrieve a transaction attribute by its
Option identifier. |
static final Option<IsolationLevel> ISOLATION_LEVEL
static final Option<Boolean> READ_ONLY
@Nullable <T> T getAttribute(Option<T> option)
Option
identifier. This low-level interface allows querying transaction attributes supported by the Connection
that should be applied
when starting a new transaction.T
- requested value typeoption
- the option to retrieve the value fornull
to indicate absence of the attribute.IllegalArgumentException
- if name
or type
is null
Copyright © 2021. All rights reserved.