|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionHandler
| Method Summary | |
|---|---|
void |
begin(int txTimeout)
Begin the transaction |
boolean |
canBegin()
Can UserTransaction be started? Can start only if it doesn't already exist. |
void |
commit()
Commit the transaction |
int |
getStatus()
javax.transaction.Status of the UserTransaction |
String |
getStatusAsString()
javax.transaction.Status as a String. |
boolean |
isActive()
Is the UserTransaction active on this thread? |
boolean |
isMarkedForRollback()
Is the UserTransaction marked for roll back? |
void |
rollback()
Roll back the transaction |
void |
setRollbackOnly()
Mark the transaction as roll back only |
boolean |
transactionExists()
Is transaction associated with the current thread? |
boolean |
userTransactionAvailable()
Is the UserTransaction available? |
| Method Detail |
|---|
void begin(int txTimeout)
throws TransactionException
txTimeout - Transaction timeout in seconds
TransactionException
void commit()
throws TransactionException
TransactionException
void rollback()
throws TransactionException
TransactionException
void setRollbackOnly()
throws TransactionException
TransactionException
boolean userTransactionAvailable()
throws TransactionException
TransactionException
boolean isActive()
throws TransactionException
TransactionException
boolean isMarkedForRollback()
throws TransactionException
TransactionException
boolean canBegin()
throws TransactionException
TransactionException
boolean transactionExists()
throws TransactionException
TransactionException
int getStatus()
throws TransactionException
TransactionException
String getStatusAsString()
throws TransactionException
TransactionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||