public class SerializableTransactionRunner extends DelegatingTransactionHandler implements TransactionHandler
Modifier and Type | Class and Description |
---|---|
static class |
SerializableTransactionRunner.Configuration |
Constructor and Description |
---|
SerializableTransactionRunner() |
SerializableTransactionRunner(SerializableTransactionRunner.Configuration configuration,
TransactionHandler delegate) |
Modifier and Type | Method and Description |
---|---|
<ReturnType> |
inTransaction(Handle handle,
TransactionCallback<ReturnType> callback)
Run a transaction.
|
<ReturnType> |
inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback)
Run a transaction.
|
protected boolean |
isSqlState(String expectedSqlState,
Throwable throwable)
Returns true iff the Throwable or one of its causes is an SQLException whose SQLState begins
with the passed state.
|
begin, checkpoint, commit, getDelegate, isInTransaction, release, rollback, rollback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
begin, checkpoint, commit, isInTransaction, release, rollback, rollback
public SerializableTransactionRunner()
public SerializableTransactionRunner(SerializableTransactionRunner.Configuration configuration, TransactionHandler delegate)
public <ReturnType> ReturnType inTransaction(Handle handle, TransactionCallback<ReturnType> callback)
TransactionHandler
inTransaction
in interface TransactionHandler
inTransaction
in class DelegatingTransactionHandler
Handle.inTransaction(TransactionCallback)
public <ReturnType> ReturnType inTransaction(Handle handle, TransactionIsolationLevel level, TransactionCallback<ReturnType> callback)
TransactionHandler
inTransaction
in interface TransactionHandler
inTransaction
in class DelegatingTransactionHandler
Handle.inTransaction(TransactionIsolationLevel, TransactionCallback)
Copyright © 2018. All rights reserved.