org.hibernate.search.backend

## Interface TransactionContext

- All Known Implementing Classes:
    EventSourceTransactionContext

      public interface TransactionContext

  Contract needed by Hibernate Search to batch changes per transaction.
  Author:
    Navin Surtani - navin@surtani.org

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getTransactionIdentifier()`
    `boolean` | `isTransactionInProgress()`
    `void` | `registerSynchronization(Synchronization synchronization)` Register the given synchronization.

- - ### Method Detail

    - #### 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-2017 Red Hat, Inc. All Rights Reserved