public class CMTTransactionFactory extends Object implements TransactionFactory<CMTTransaction>
| Modifier and Type | Field and Description |
|---|---|
static String |
SHORT_NAME |
| Constructor and Description |
|---|
CMTTransactionFactory() |
| 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. |
CMTTransaction |
createTransaction(TransactionCoordinator transactionCoordinator)
Construct a transaction instance compatible with this strategy.
|
ConnectionReleaseMode |
getDefaultReleaseMode()
Get the default connection release mode.
|
boolean |
isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator,
CMTTransaction transaction)
Can the underlying transaction represented by the passed Hibernate
TransactionImplementor be joined? |
public static final String SHORT_NAME
public CMTTransaction createTransaction(TransactionCoordinator transactionCoordinator)
TransactionFactorycreateTransaction in interface TransactionFactory<CMTTransaction>transactionCoordinator - The coordinator for this transactionpublic boolean canBeDriver()
TransactionFactorycanBeDriver in interface TransactionFactory<CMTTransaction>public ConnectionReleaseMode getDefaultReleaseMode()
TransactionFactorygetDefaultReleaseMode in interface TransactionFactory<CMTTransaction>public boolean compatibleWithJtaSynchronization()
TransactionFactorysynchronizations.
In other words, is this strategy JTA-based?compatibleWithJtaSynchronization in interface TransactionFactory<CMTTransaction>synchronizations; false otherwise.public boolean isJoinableJtaTransaction(TransactionCoordinator transactionCoordinator, CMTTransaction transaction)
TransactionFactoryTransactionImplementor be joined?isJoinableJtaTransaction in interface TransactionFactory<CMTTransaction>transactionCoordinator - The transaction coordinatortransaction - The current Hibernate transactionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.