The term 'CMT' is potentially misleading here; the pertinent point simply being that the transactions are being managed by something other than the Hibernate transaction mechanism.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected final JDBCContext | |
| private static final Logger | |
| protected final TransactionFactory. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | commit()
Implements org. FlushMode#MANUAL.
|
| public Transaction | |
| public boolean | |
| public void | registerSynchronization(Synchronization
The Synchronization callback to register. sync)Implements org. |
| public void | rollback()
Implements org. |
| public void | setTimeout(int
The number of seconds before a timeout. seconds)Implements org. |
| public boolean | wasCommitted()
Implements org. |
| public boolean | wasRolledBack()
Implements org. |
| begun | back to summary |
|---|---|
| private boolean begun | |
| jdbcContext | back to summary |
|---|---|
| protected final JDBCContext jdbcContext | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| transactionContext | back to summary |
|---|---|
| protected final TransactionFactory. | |
| CMTTransaction | back to summary |
|---|---|
| public CMTTransaction(JDBCContext jdbcContext, TransactionFactory. | |
| begin | back to summary |
|---|---|
| public void begin() throws HibernateException Implements org. Doc from org. Begin a new transaction. | |
| commit | back to summary |
|---|---|
| public void commit() throws HibernateException Implements org. Doc from org. Flush the associated Session and end the unit of work (unless
we are in | |
| getTransaction | back to summary |
|---|---|
| public Transaction getTransaction() throws SystemException Getter for property 'transaction'.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() throws TransactionException Implements org. Doc from org. Is this transaction still active? Again, this only returns information in relation to the local transaction, not the actual underlying transaction.
| |
| registerSynchronization | back to summary |
|---|---|
| public void registerSynchronization(Synchronization sync) throws HibernateException Implements org. Doc from org. Register a user synchronization callback for this transaction.
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws HibernateException Implements org. Doc from org. Force the underlying transaction to roll back. | |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(int seconds) Implements org. Doc from org. Set the transaction timeout for any transaction started by a subsequent call to begin() on this instance.
| |
| wasCommitted | back to summary |
|---|---|
| public boolean wasCommitted() throws TransactionException Implements org. Doc from org. Check if this transaction was successfully committed.
This method could return false even after successful invocation
of
| |
| wasRolledBack | back to summary |
|---|---|
| public boolean wasRolledBack() throws TransactionException Implements org. Doc from org. Was this transaction rolled back or set to rollback only? This only accounts for actions initiated from this local transaction. If, for example, the underlying transaction is forced to rollback via some other means, this method still reports false because the rollback was not initiated from here.
| |