com.xenonsoft.bridgetown.aop.transaction
Interface IMutableTransactionContext

All Superinterfaces:
ITransactionContext
All Known Implementing Classes:
AbstractTransactionContext, BasicTransactionContext

public interface IMutableTransactionContext
extends ITransactionContext

An extension of the transaction context interface that is used by a transaction management service.

Version:
$Id: IMutableTransactionContext.java,v 1.4 2005/03/17 02:35:51 peter_pilgrim Exp $
Author:
Peter Pilgrim, 11-Feb-2005 14:35:01

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

getTransactionSession

public ITransactionSession getTransactionSession()
Gets the transaction session that created this transaction context


setTransactionSession

public void setTransactionSession(ITransactionSession session)
Sets he transaction session that created this transaction context


getTransactionService

public ITransactionServiceManager getTransactionService()
Gets the transactionService

Returns:
Returns the transactionService.

setTransactionService

public void setTransactionService(ITransactionServiceManager transactionService)
Sets the transactionService

Parameters:
transactionService - the new value for transactionService

getResourceCount

public int getResourceCount()
Gets the number of resources associated this current transaction

Returns:
the resource count

getResourceNames

public java.util.Iterator getResourceNames()
Retrieves the names of the associated transaction resources

Returns:
a iterator that returns the names of the transactional resources.

fireOpenResourceEvent

public void fireOpenResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction


fireCloseResourceEvent

public void fireCloseResourceEvent()
Notify all registered resource controllers that they should close any resource associated with the transaction


firePrepareToCommitEvent

public boolean firePrepareToCommitEvent()
Inquire all registered resource controllers if they can commit the transaction.


fireSuspendResourceEvent

public void fireSuspendResourceEvent()
Notify all registered resource controllers that they should suspend the transaction state until resumption


fireCommitResourceEvent

public void fireCommitResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction


fireRollbackResourceEvent

public void fireRollbackResourceEvent()
Notify all registered resource controllers that they should acquire any resource associated with the transaction


fireResumeResourceEvent

public void fireResumeResourceEvent()
Notify all registered resource controllers that they should resume the transaction state, which was place in suspension


setTransactionState

public void setTransactionState(TransactionStateEnum transactionState)
Sets the transactionState

Parameters:
transactionState - the new value for transactionState


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.