public class JdbcTransaction extends AbstractTransactionImpl
Transaction implementation based on transaction management through a JDBC Connection.
This the default transaction strategy.| Modifier | Constructor and Description |
|---|---|
protected |
JdbcTransaction(TransactionCoordinator transactionCoordinator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAfterCompletion() |
protected void |
afterTransactionBegin() |
protected void |
afterTransactionCompletion(int status) |
protected void |
beforeTransactionCommit() |
protected void |
beforeTransactionRollBack() |
IsolationDelegate |
createIsolationDelegate()
Retrieve an isolation delegate appropriate for this transaction strategy.
|
protected void |
doBegin()
Perform the actual steps of beginning a transaction according to the strategy.
|
protected void |
doCommit()
Perform the actual steps of committing a transaction according to the strategy.
|
protected void |
doRollback()
Perform the actual steps of rolling back a transaction according to the strategy.
|
JoinStatus |
getJoinStatus()
Get the current state of this transaction's join status.
|
boolean |
isActive()
Is this transaction still active?
Answers on a best effort basis.
|
boolean |
isInitiator()
Is this transaction the initiator of any underlying transaction?
|
void |
join()
Perform a join to the underlying transaction
|
void |
markRollbackOnly()
Make a best effort to mark the underlying transaction for rollback only.
|
void |
resetJoinStatus()
Reset this transaction's join status.
|
allowFailedCommitToPhysicallyRollback, begin, commit, doExtendedActiveCheck, getLocalStatus, getTimeout, invalidate, isParticipating, jtaPlatform, markForJoin, registerSynchronization, rollback, setTimeout, transactionCoordinator, wasCommitted, wasRolledBackprotected JdbcTransaction(TransactionCoordinator transactionCoordinator)
protected void doBegin()
AbstractTransactionImpldoBegin in class AbstractTransactionImplprotected void afterTransactionBegin()
afterTransactionBegin in class AbstractTransactionImplprotected void beforeTransactionCommit()
beforeTransactionCommit in class AbstractTransactionImplprotected void doCommit()
throws TransactionException
AbstractTransactionImpldoCommit in class AbstractTransactionImplTransactionException - Indicates a problem committing the transactionprotected void afterTransactionCompletion(int status)
afterTransactionCompletion in class AbstractTransactionImplprotected void afterAfterCompletion()
afterAfterCompletion in class AbstractTransactionImplprotected void beforeTransactionRollBack()
beforeTransactionRollBack in class AbstractTransactionImplprotected void doRollback()
throws TransactionException
AbstractTransactionImpldoRollback in class AbstractTransactionImplTransactionException - Indicates a problem rolling back the transactionpublic boolean isInitiator()
Transactiontrue if this transaction initiated the underlying transaction; false otherwise.public IsolationDelegate createIsolationDelegate()
TransactionImplementorpublic JoinStatus getJoinStatus()
TransactionImplementorpublic void markRollbackOnly()
TransactionImplementorpublic void join()
TransactionImplementorjoin in interface TransactionImplementorjoin in class AbstractTransactionImplpublic void resetJoinStatus()
TransactionImplementorresetJoinStatus in interface TransactionImplementorresetJoinStatus in class AbstractTransactionImplpublic boolean isActive()
throws HibernateException
TransactionConnection, only when
it is initiated from here.isActive in interface TransactionisActive in class AbstractTransactionImpltrue if the transaction is still active; false otherwise.HibernateException - Indicates a problem checking the transaction status.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.