|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An extension of the transaction context interface that is used by a transaction management service.
| Field Summary |
| Fields inherited from interface com.xenonsoft.bridgetown.aop.transaction.ITransactionContext |
STANDARD_RESOURCE |
| Method Summary | |
void |
fireCloseResourceEvent()
Notify all registered resource controllers that they should close any resource associated with the transaction |
void |
fireCommitResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction |
void |
fireOpenResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction |
boolean |
firePrepareToCommitEvent()
Inquire all registered resource controllers if they can commit the transaction. |
void |
fireResumeResourceEvent()
Notify all registered resource controllers that they should resume the transaction state, which was place in suspension |
void |
fireRollbackResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction |
void |
fireSuspendResourceEvent()
Notify all registered resource controllers that they should suspend the transaction state until resumption |
int |
getResourceCount()
Gets the number of resources associated this current transaction |
java.util.Iterator |
getResourceNames()
Retrieves the names of the associated transaction resources |
ITransactionServiceManager |
getTransactionService()
Gets the transactionService |
ITransactionSession |
getTransactionSession()
Gets the transaction session that created this transaction context |
void |
setTransactionService(ITransactionServiceManager transactionService)
Sets the transactionService |
void |
setTransactionSession(ITransactionSession session)
Sets he transaction session that created this transaction context |
void |
setTransactionState(TransactionStateEnum transactionState)
Sets the transactionState |
| Methods inherited from interface com.xenonsoft.bridgetown.aop.transaction.ITransactionContext |
closeAllResources, commit, delistResource, enlistResource, getAttribute, getAttributeNames, getResource, getTransactionState, isRollbackOnly, isTransactionNew, rollback, setAttribute, setRollbackOnly, setTransactionTimeout |
| Method Detail |
public ITransactionSession getTransactionSession()
public void setTransactionSession(ITransactionSession session)
public ITransactionServiceManager getTransactionService()
public void setTransactionService(ITransactionServiceManager transactionService)
transactionService - the new value for transactionServicepublic int getResourceCount()
public java.util.Iterator getResourceNames()
public void fireOpenResourceEvent()
public void fireCloseResourceEvent()
public boolean firePrepareToCommitEvent()
public void fireSuspendResourceEvent()
public void fireCommitResourceEvent()
public void fireRollbackResourceEvent()
public void fireResumeResourceEvent()
public void setTransactionState(TransactionStateEnum transactionState)
transactionState - the new value for transactionState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||