Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.core.persistence.transaction.support
Class TransactionCallbackWithoutResult

java.lang.Object
  extended by oracle.odi.core.persistence.transaction.support.TransactionCallbackWithoutResult
All Implemented Interfaces:
ITransactionCallback

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

Simple convenience class for ITransactionCallback implementation. Allows for implementing a doInTransaction version without result, i.e. without the need for a return statement.

Since:
11.1.1.3.0

Constructor Summary
TransactionCallbackWithoutResult()
           
 
Method Summary
 java.lang.Object doInTransaction(ITransactionStatus pStatus)
          Gets called by TransactionTemplate.execute(ITransactionCallback) 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 java.lang.Object doInTransaction(ITransactionStatus pStatus)
Description copied from interface: ITransactionCallback
Gets called by TransactionTemplate.execute(ITransactionCallback) within a transactional context. Does not need to care about transactions itself.

Allows for returning a result object created within the transaction, i.e. an ODI entity or a collection of ODI entities.

A RuntimeException thrown by the callback is treated as application exception that enforces a rollback. An exception gets propagated to the caller of the template.

Specified by:
doInTransaction in interface ITransactionCallback
Parameters:
pStatus - associated transaction status
Returns:
a result object, or null

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.