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.engine.transaction.internal.jta
Class JtaTransactionFactory

    java.lang.Object
      org.hibernate.engine.transaction.internal.jta.JtaTransactionFactory

All Implemented Interfaces:
  Serializable, TransactionFactory<JtaTransaction>, Service

    public class JtaTransactionFactory

extends Object
implements TransactionFactory<JtaTransaction>

Factory for `JtaTransaction` instances.

See Also:
  Serialized Form

Constructor Summary
`JtaTransactionFactory()`

Method Summary
`boolean` | `canBeDriver()` Can the transactions created from this strategy act as the driver? In other words can the user actually manage transactions with this strategy?
`boolean` | `compatibleWithJtaSynchronization()` Should we attempt to register JTA transaction `synchronizations`.
`JtaTransaction` | `createTransaction(TransactionCoordinator transactionCoordinator)` Construct a transaction instance compatible with this strategy.
`ConnectionReleaseMode` | `getDefaultReleaseMode()` Get the default connection release mode.
`boolean` | `isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator, JtaTransaction transaction)` Can the underlying transaction represented by the passed Hibernate `TransactionImplementor` be joined?

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

Constructor Detail

### JtaTransactionFactory

    public JtaTransactionFactory()

Method Detail

### createTransaction

    public JtaTransaction createTransaction(TransactionCoordinator transactionCoordinator)

  Description copied from interface: `TransactionFactory`
  Construct a transaction instance compatible with this strategy.

  Specified by:
    `createTransaction` in interface `TransactionFactory<JtaTransaction>`
  Parameters:
    `transactionCoordinator` - The coordinator for this transaction
  Returns:
    The appropriate transaction instance.

### canBeDriver

    public boolean canBeDriver()

  Description copied from interface: `TransactionFactory`
  Can the transactions created from this strategy act as the driver? In other words can the user actually manage transactions with this strategy?

  Specified by:
    `canBeDriver` in interface `TransactionFactory<JtaTransaction>`
  Returns:
    true if the transaction strategy represented by this factory can act as the driver callback; false otherwise.

### getDefaultReleaseMode

    public ConnectionReleaseMode getDefaultReleaseMode()

  Description copied from interface: `TransactionFactory`
  Get the default connection release mode.

  Specified by:
    `getDefaultReleaseMode` in interface `TransactionFactory<JtaTransaction>`
  Returns:
    The default release mode associated with this strategy

### compatibleWithJtaSynchronization

    public boolean compatibleWithJtaSynchronization()

  Description copied from interface: `TransactionFactory`
  Should we attempt to register JTA transaction `synchronizations`.

  In other words, is this strategy JTA-based?

  Specified by:
    `compatibleWithJtaSynchronization` in interface `TransactionFactory<JtaTransaction>`
  Returns:
    true if the transaction strategy represented by this factory is compatible with registering `synchronizations`; false otherwise.

### isJoinableJtaTransaction

    public boolean isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator,
                                            JtaTransaction transaction)

  Description copied from interface: `TransactionFactory`
  Can the underlying transaction represented by the passed Hibernate `TransactionImplementor` be joined?

  Specified by:
    `isJoinableJtaTransaction` in interface `TransactionFactory<JtaTransaction>`
  Parameters:
    `transactionCoordinator` - The transaction coordinator
    `transaction` - The current Hibernate transaction
  Returns:
    true is the transaction can be joined; false otherwise.

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 © 2001-2012 Red Hat, Inc. All Rights Reserved.