public interface TransactionFactory<T extends TransactionImplementor> extends Service
| 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. | 
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? | 
T createTransaction(TransactionCoordinator coordinator)
coordinator - The coordinator for this transactionHibernateException - 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 transactionConnectionReleaseMode getDefaultReleaseMode()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.