Package 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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidregisterSynchronization(Synchronization synchronization) Register the given synchronization.
-
Method Details
-
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
-