org.hibernate.search.backend
Interface TransactionContext

All Known Implementing Classes:
EventSourceTransactionContext, InstanceTransactionContext

public interface TransactionContext

Contract needed by Hibernate Search to batch changes per transaction.

Author:
Navin Surtani - [email protected]

Method Summary
 java.lang.Object getTransactionIdentifier()
           
 boolean isTransactionInProgress()
           
 void registerSynchronization(javax.transaction.Synchronization synchronization)
          Register the given synchronization.
 

Method Detail

isTransactionInProgress

boolean isTransactionInProgress()
Returns:
A boolean indicating whether a transaction is in progress or not.

getTransactionIdentifier

java.lang.Object getTransactionIdentifier()
Returns:
a transaction object.

registerSynchronization

void registerSynchronization(javax.transaction.Synchronization synchronization)
Register the given synchronization.

Parameters:
synchronization - synchronization to register


Copyright © 2006-2010 Hibernate. All Rights Reserved.