com.adobe.idp.dsc.transaction
Class TransactionCallbackWithoutResult

java.lang.Object
  extended by com.adobe.idp.dsc.transaction.TransactionCallbackWithoutResult
All Implemented Interfaces:
TransactionCallback

public abstract class TransactionCallbackWithoutResult
extends java.lang.Object
implements TransactionCallback

Helper class for TransactionCallback implementation. It allows for implementing #doInTransaction() without returning a result.


Constructor Summary
TransactionCallbackWithoutResult()
           
 
Method Summary
 java.lang.Object doInTransaction(TransactionContext aTxCtx)
          This is called by TransactionTemplate.execute() within a transactional context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionCallbackWithoutResult

public TransactionCallbackWithoutResult()
Method Detail

doInTransaction

public final java.lang.Object doInTransaction(TransactionContext aTxCtx)
                                       throws com.adobe.idp.dsc.DSCException
This is called by TransactionTemplate.execute() within a transactional context. It returns null.

It does not require information about the transactions themselves, although it can retrieve and influence the status of the current transaction through the given status object, by setting rollback-only.

Specified by:
doInTransaction in interface TransactionCallback
Parameters:
aTxCtx - The associated transaction context.
Returns:
null.
Throws:
com.adobe.idp.dsc.DSCException
See Also:
TransactionTemplate.execute()