org.hibernate.transaction.TransactionFactory |
![]() |
Contract for generating Hibernate Transaction
instances.
TRANSACTION_STRATEGY
configuration
setting.
Implementors must be threadsafe and should declare a public default constructor.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TransactionFactory.Context | Callback mechanism; a context is always a Session
in the Hibernate usage. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Are all transaction callbacks local to Hibernate Transactions?
Or can the callbacks originate from some other source (e.g.
| |||||||||||
Configure from the given properties.
| |||||||||||
Begin a transaction and return the associated Transaction instance.
| |||||||||||
Get the default connection release mode.
| |||||||||||
Determine whether an underlying transaction is in progress.
| |||||||||||
Do we require access to the JTA TransactionManager for
this strategy?
|
Are all transaction callbacks local to Hibernate Transactions? Or can the callbacks originate from some other source (e.g. a JTA Synchronization).
Transaction
; false otherwise.
Configure from the given properties.
props | The configuration properties. |
---|
HibernateException | Indicates a problem configuring this factory. |
---|
Begin a transaction and return the associated Transaction instance.
jdbcContext | The jdbc context to which the transaction belongs |
---|---|
context | The contract regarding the context in which this transaction will operate. |
HibernateException | Indicates a problem generating a transaction instance |
---|
Get the default connection release mode.
Determine whether an underlying transaction is in progress.
Mainly this is used in determining whether to register a synchronization as well as whether or not to circumvent auto flushing outside transactions.jdbcContext | The JDBC context |
---|---|
transactionContext | The transaction context |
transaction | The Hibernate transaction |
Do we require access to the JTA TransactionManager for this strategy?