org.compass.core.transaction.context
Interface TransactionContext


public interface TransactionContext

Allows to execute operations within a transactional context.

Author:
kimchy

Method Summary
<T> T
execute(TransactionContextCallback<T> callback)
          Executes the given callback within a transactional context.
<T> T
execute(TransactionContextCallbackWithTr<T> callback)
          Executes the given callback within a transactional context (always).
 

Method Detail

execute

<T> T execute(TransactionContextCallback<T> callback)
          throws TransactionException
Executes the given callback within a transactional context. Note, the transaction will only be started if needed. See SearchEngineIndexManager.requiresAsyncTransactionalContext().

Throws:
TransactionException

execute

<T> T execute(TransactionContextCallbackWithTr<T> callback)
          throws TransactionException
Executes the given callback within a transactional context (always).

Throws:
TransactionException


Copyright (c) 2004-2008 The Compass Project.