Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.sandbox.standalone
Class InstanceTransactionContext

    java.lang.Object
      org.hibernate.search.sandbox.standalone.InstanceTransactionContext

All Implemented Interfaces:
  TransactionContext

    public class InstanceTransactionContext

extends java.lang.Object
implements TransactionContext

Transaction context that contains transaction boundaries methods. While not "transactional" it allows to call Synchronization elements

Author:
  Emmanuel Bernard

Constructor Summary
`InstanceTransactionContext()`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InstanceTransactionContext

    public InstanceTransactionContext()

Method Detail

### beginTransaction

    public void beginTransaction()

### commit

    public void commit()

### rollback

    public void rollback()

### isTransactionInProgress

    public boolean isTransactionInProgress()

  Specified by:
    `isTransactionInProgress` in interface `TransactionContext`
  Returns:
    A boolean indicating whether a transaction is in progress or not.

### getTransactionIdentifier

    public java.lang.Object getTransactionIdentifier()

  Specified by:
    `getTransactionIdentifier` in interface `TransactionContext`
  Returns:
    a transaction object.

### registerSynchronization

    public void registerSynchronization(javax.transaction.Synchronization synchronization)

  Description copied from interface: `TransactionContext`
  Register the given synchronization.

  Specified by:
    `registerSynchronization` in interface `TransactionContext`
  Parameters:
    `synchronization` - synchronization to register

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.