| Package | Description |
|---|---|
| org.seasar.doma.jdbc.tx |
Provides transaction related classes.
|
| Modifier and Type | Field and Description |
|---|---|
protected TransactionIsolationLevel |
LocalTransaction.defaultTransactionIsolationLevel |
| Modifier and Type | Method and Description |
|---|---|
static TransactionIsolationLevel |
TransactionIsolationLevel.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionIsolationLevel[] |
TransactionIsolationLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LocalTransaction.begin(TransactionIsolationLevel transactionIsolationLevel)
Begin this transaction with the specified transaction isolation level.
|
protected void |
LocalTransaction.beginInternal(TransactionIsolationLevel transactionIsolationLevel,
java.lang.String callerMethodName) |
protected <RESULT> RESULT |
LocalTransactionManager.executeInTransaction(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
KeepAliveLocalTransaction |
LocalTransactionDataSource.getKeepAliveLocalTransaction(JdbcLogger jdbcLogger,
TransactionIsolationLevel transactionIsolationLevel)
Returns a keep alive local transaction with the specified transaction level.
|
LocalTransaction |
LocalTransactionDataSource.getLocalTransaction(JdbcLogger jdbcLogger,
TransactionIsolationLevel transactionIsolationLevel)
Returns a local transaction with the specified transaction level.
|
void |
LocalTransactionManager.notSupported(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block) |
void |
TransactionManager.notSupported(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block)
Executes the transaction whose attribute is NOT_SUPPORTED with the specified transaction
isolation level.
|
<RESULT> RESULT |
LocalTransactionManager.notSupported(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
<RESULT> RESULT |
TransactionManager.notSupported(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier)
Executes the transaction whose attribute is NOT_SUPPORTED with the specified transaction
isolation level and return the result.
|
protected <RESULT> RESULT |
LocalTransactionManager.notSupportedInternal(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
void |
LocalTransactionManager.required(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block) |
void |
TransactionManager.required(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block)
Executes the transaction whose attribute is REQUIRED with the specified transaction isolation
level.
|
<RESULT> RESULT |
LocalTransactionManager.required(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
<RESULT> RESULT |
TransactionManager.required(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier)
Executes the transaction whose attribute is REQUIRED with the specified transaction isolation
level and return the result.
|
protected <RESULT> RESULT |
LocalTransactionManager.requiredInternal(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
void |
LocalTransactionManager.requiresNew(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block) |
void |
TransactionManager.requiresNew(TransactionIsolationLevel isolationLevel,
java.lang.Runnable block)
Executes the transaction whose attribute is REQUIRES_NEW with the specified transaction
isolation level.
|
<RESULT> RESULT |
LocalTransactionManager.requiresNew(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
<RESULT> RESULT |
TransactionManager.requiresNew(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier)
Executes the transaction whose attribute is REQUIRES_NEW with the specified transaction
isolation level and return the result.
|
protected <RESULT> RESULT |
LocalTransactionManager.requiresNewInternal(TransactionIsolationLevel isolationLevel,
java.util.function.Supplier<RESULT> supplier) |
| Constructor and Description |
|---|
KeepAliveLocalTransaction(javax.sql.DataSource dataSource,
java.lang.ThreadLocal<LocalTransactionContext> localTxContextHolder,
JdbcLogger jdbcLogger,
TransactionIsolationLevel defaultTransactionIsolationLevel)
Creates an instance with the specified transaction isolation level.
|
LocalTransaction(javax.sql.DataSource dataSource,
java.lang.ThreadLocal<LocalTransactionContext> localTxContextHolder,
JdbcLogger jdbcLogger,
TransactionIsolationLevel defaultTransactionIsolationLevel) |
LocalTransactionManager(LocalTransactionDataSource dataSource,
JdbcLogger jdbcLogger,
TransactionIsolationLevel isolationLevel)
Create an instance.
|