|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.transaction.internal.jta.JtaTransactionFactory
public class JtaTransactionFactory
Factory for JtaTransaction
instances.
Constructor Summary | |
---|---|
JtaTransactionFactory()
|
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 . |
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JtaTransactionFactory()
Method Detail |
---|
public JtaTransaction createTransaction(TransactionCoordinator transactionCoordinator)
TransactionFactory
createTransaction
in interface TransactionFactory<JtaTransaction>
transactionCoordinator
- The coordinator for this transaction
public 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 transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |