public class JtaTransactionFactory extends Object implements TransactionFactory<JtaTransaction>
JtaTransaction
instances.Constructor and Description |
---|
JtaTransactionFactory() |
Modifier and Type | Method and Description |
---|---|
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? |
public JtaTransaction createTransaction(TransactionCoordinator transactionCoordinator)
TransactionFactory
createTransaction
in interface TransactionFactory<JtaTransaction>
transactionCoordinator
- The coordinator for this transactionpublic boolean canBeDriver()
TransactionFactory
canBeDriver
in interface TransactionFactory<JtaTransaction>
public ConnectionReleaseMode getDefaultReleaseMode()
TransactionFactory
getDefaultReleaseMode
in interface TransactionFactory<JtaTransaction>
public boolean compatibleWithJtaSynchronization()
TransactionFactory
synchronizations
.
In other words, is this strategy JTA-based?compatibleWithJtaSynchronization
in interface TransactionFactory<JtaTransaction>
synchronizations
; false otherwise.public boolean isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator, JtaTransaction transaction)
TransactionFactory
TransactionImplementor
be joined?isJoinableJtaTransaction
in interface TransactionFactory<JtaTransaction>
transactionCoordinator
- The transaction coordinatortransaction
- The current Hibernate transactionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.