jakarta.transaction.UserTransaction .
Used as transaction object by Spring's JtaTransactionManager.Note
This is an SPI class, not intended to be used by applications.
JtaTransactionManager, jakarta.transaction.UserTransaction
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private final UserTransaction |
| Access | Constructor and Description |
|---|---|
| public | JtaTransactionObject(UserTransaction
the JTA UserTransaction for the current transaction
(either a shared object or retrieved through a fresh per-transaction lookup) userTransaction)Create a new JtaTransactionObject for the given JTA UserTransaction. |
| Modifier and Type | Method and Description |
|---|---|
| public void | flush()
Overrides default org. This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions. |
| public final UserTransaction | |
| public boolean | isRollbackOnly()
Overrides default org. This implementation checks the UserTransaction's rollback-only flag. |
| resetTransactionTimeout | back to summary |
|---|---|
| pack-priv boolean resetTransactionTimeout | |
| userTransaction | back to summary |
|---|---|
| private final UserTransaction userTransaction | |
| JtaTransactionObject | back to summary |
|---|---|
| public JtaTransactionObject(UserTransaction userTransaction) Create a new JtaTransactionObject for the given JTA UserTransaction.
| |
| flush | back to summary |
|---|---|
| public void flush() Overrides default org. This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions.
| |
| getUserTransaction | back to summary |
|---|---|
| public final UserTransaction getUserTransaction() Return the JTA UserTransaction object for the current transaction. | |
| isRollbackOnly | back to summary |
|---|---|
| public boolean isRollbackOnly() Overrides default org. This implementation checks the UserTransaction's rollback-only flag.
| |