Skip navigation links

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

E17060-03


oracle.odi.core.persistence.transaction.support
Interface ITransactionCallback

All Known Implementing Classes:
TransactionCallbackWithoutResult

public interface ITransactionCallback

Callback interface for transactional code. Used with TransactionTemplate's execute method, often as anonymous class within a method implementation.

Since:
11.1.1.3.0

Method Summary
 java.lang.Object doInTransaction(ITransactionStatus pStatus)
          Gets called by TransactionTemplate.execute(ITransactionCallback) within a transactional context.

 

Method Detail

doInTransaction

java.lang.Object doInTransaction(ITransactionStatus pStatus)
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.

Parameters:
pStatus - associated transaction status
Returns:
a result object, or null

Skip navigation links

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

E17060-03


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