|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.transaction.spi.AbstractTransactionImpl org.hibernate.engine.transaction.internal.jta.JtaTransaction
public class JtaTransaction
Implements a transaction strategy based on transaction management through a JTA UserTransaction
.
Constructor Summary | |
---|---|
protected |
JtaTransaction(TransactionCoordinator transactionCoordinator)
|
Method Summary | |
---|---|
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. |
UserTransaction |
getUserTransaction()
|
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. |
void |
setTimeout(int seconds)
Set the transaction timeout for any transaction started by a subsequent call to Transaction.begin() on this instance. |
Methods inherited from class org.hibernate.engine.transaction.spi.AbstractTransactionImpl |
---|
allowFailedCommitToPhysicallyRollback, begin, commit, doExtendedActiveCheck, getLocalStatus, getTimeout, invalidate, isParticipating, jtaPlatform, markForJoin, registerSynchronization, rollback, transactionCoordinator, wasCommitted, wasRolledBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JtaTransaction(TransactionCoordinator transactionCoordinator)
Method Detail |
---|
public UserTransaction getUserTransaction()
protected void doBegin()
AbstractTransactionImpl
doBegin
in class AbstractTransactionImpl
protected void afterTransactionBegin()
afterTransactionBegin
in class AbstractTransactionImpl
protected void beforeTransactionCommit()
beforeTransactionCommit
in class AbstractTransactionImpl
protected void doCommit()
AbstractTransactionImpl
doCommit
in class AbstractTransactionImpl
protected void afterTransactionCompletion(int status)
afterTransactionCompletion
in class AbstractTransactionImpl
protected void afterAfterCompletion()
afterAfterCompletion
in class AbstractTransactionImpl
protected void beforeTransactionRollBack()
beforeTransactionRollBack
in class AbstractTransactionImpl
protected void doRollback()
AbstractTransactionImpl
doRollback
in class AbstractTransactionImpl
public void markRollbackOnly()
TransactionImplementor
public IsolationDelegate createIsolationDelegate()
TransactionImplementor
public boolean isInitiator()
Transaction
true
if this transaction initiated the underlying transaction; false
otherwise.public boolean isActive() throws HibernateException
Transaction
Connection
, only when
it is initiated from here.
isActive
in interface Transaction
isActive
in class AbstractTransactionImpl
true
if the transaction is still active; false
otherwise.
HibernateException
- Indicates a problem checking the transaction status.public void setTimeout(int seconds)
Transaction
Transaction.begin()
on this instance.
setTimeout
in interface Transaction
setTimeout
in class AbstractTransactionImpl
seconds
- The number of seconds before a timeout.public void join()
TransactionImplementor
join
in interface TransactionImplementor
join
in class AbstractTransactionImpl
public void resetJoinStatus()
TransactionImplementor
resetJoinStatus
in interface TransactionImplementor
resetJoinStatus
in class AbstractTransactionImpl
public JoinStatus getJoinStatus()
TransactionImplementor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |