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 - navin@surtani.org
isTransactionInProgress
boolean isTransactionInProgress()
- Returns:
- A boolean indicating whether a transaction is in progress or not.
getTransactionIdentifier
Object getTransactionIdentifier()
- Returns:
- a transaction object.
registerSynchronization
void registerSynchronization(Synchronization synchronization)
- Register the given synchronization.
- Parameters:
synchronization
- synchronization to register
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved