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 |
transactionBeforeCompletion(boolean successful)
The transaction is about to complete.
|
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
SQLException
void transactionBeforeCompletion(boolean successful)
successful
- If the transaction is to complete successfully (commit) or unsuccessfully (rollback)void transactionCommit() throws SQLException
SQLException
void transactionRollback() throws SQLException
SQLException
void transactionEnd() throws SQLException
SQLException
void transactionCheckCallback(TransactionAware.SQLCallable<Boolean> transactionCheck)
Object getConnection()
Connection
held by the resource.void setFlushOnly()
Copyright © 2021 JBoss by Red Hat. All rights reserved.