public class SerializableTransactionRunner extends DelegatingTransactionHandler implements TransactionHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
SerializableTransactionRunner.Configuration
Configuration for serializable transaction runner
|
| Constructor and Description |
|---|
SerializableTransactionRunner() |
SerializableTransactionRunner(TransactionHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
<R,X extends Exception> |
inTransaction(Handle handle,
HandleCallback<R,X> callback)
Run a transaction.
|
<R,X extends Exception> |
inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback)
Run a transaction.
|
protected boolean |
isSqlState(String expectedSqlState,
Throwable throwable) |
begin, commit, getDelegate, isInTransaction, releaseSavepoint, rollback, rollbackToSavepoint, savepointclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbegin, commit, isInTransaction, releaseSavepoint, rollback, rollbackToSavepoint, savepointpublic SerializableTransactionRunner()
public SerializableTransactionRunner(TransactionHandler delegate)
public <R,X extends Exception> R inTransaction(Handle handle, HandleCallback<R,X> callback) throws X extends Exception
TransactionHandlerinTransaction in interface TransactionHandlerinTransaction in class DelegatingTransactionHandlerR - the callback return typeX - the exception type thrown by the callback, if anyhandle - the handle to the databasecallback - a callback which will receive the open handle, in a transaction.X - any exception thrown by the callback.X extends ExceptionHandle.inTransaction(HandleCallback)public <R,X extends Exception> R inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback) throws X extends Exception
TransactionHandlerinTransaction in interface TransactionHandlerinTransaction in class DelegatingTransactionHandlerR - the callback return typeX - the exception type thrown by the callback, if anyhandle - the handle to the databaselevel - the isolation level for the transactioncallback - a callback which will receive the open handle, in a transaction.X - any exception thrown by the callback.X extends ExceptionHandle.inTransaction(TransactionIsolationLevel, HandleCallback)Copyright © 2019. All rights reserved.