|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionFactory<T extends TransactionImplementor>
Contract for transaction creation, as well as providing metadata and contextual information about that creation.
| 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. |
T |
createTransaction(TransactionCoordinator coordinator)
Construct a transaction instance compatible with this strategy. |
ConnectionReleaseMode |
getDefaultReleaseMode()
Get the default connection release mode. |
boolean |
isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator,
T transaction)
Can the underlying transaction represented by the passed Hibernate TransactionImplementor be joined? |
| Method Detail |
|---|
T createTransaction(TransactionCoordinator coordinator)
coordinator - The coordinator for this transaction
HibernateException - Indicates a problem constructing the transaction.boolean canBeDriver()
boolean compatibleWithJtaSynchronization()
synchronizations.
In other words, is this strategy JTA-based?
synchronizations; false otherwise.
boolean isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator,
T transaction)
TransactionImplementor be joined?
transactionCoordinator - The transaction coordinatortransaction - The current Hibernate transaction
ConnectionReleaseMode getDefaultReleaseMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||