public interface TransactionAware
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TransactionAware.SQLCallable<T>
A callable that can throw
SQLException |
| Modifier and Type | Method and Description |
|---|---|
Object |
getConnection()
Gets access to the raw
Connection held by the resource. |
void |
setFlushOnly()
The resource is no longer valid and should not be returned to the pool.
|
void |
transactionCheckCallback(TransactionAware.SQLCallable<Boolean> transactionCheck)
Set a callback trap to prevent lazy / deferred enlistment.
|
void |
transactionCommit()
The resource must commit.
|
void |
transactionEnd()
The transaction ended and the resource is no longer enlisted.
|
void |
transactionRollback()
The resource must rollback.
|
void |
transactionStart()
The resource it's now enlisted with a transaction.
|
void transactionStart()
throws SQLException
SQLExceptionvoid transactionCommit()
throws SQLException
SQLExceptionvoid transactionRollback()
throws SQLException
SQLExceptionvoid transactionEnd()
throws SQLException
SQLExceptionvoid transactionCheckCallback(TransactionAware.SQLCallable<Boolean> transactionCheck)
Object getConnection()
Connection held by the resource.void setFlushOnly()
Copyright © 2019 JBoss by Red Hat. All rights reserved.