| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if a transaction is currently active, or if there is a "no transaction" context active
|
| public boolean | |
| public TransactionBuilder | Returns: A builder to complete the creation of the transactionBuild a transaction context to surround a piece of transactional work |
| public TransactionContext | Returns: The current transaction context, which may be a "no transaction" context, or null if there is no active context
|
| public boolean | Returns: true if the transaction is marked for rollbackGets the rollback status of the active transaction |
| public void | ignoreException(Throwable
The exception to ignore t)Marks that the current transaction should not be rolled back if the supplied Exception is thrown by the current transactional work |
| public void |
| activeScope | back to summary |
|---|---|
public boolean activeScope()
| |
| activeTransaction | back to summary |
|---|---|
public boolean activeTransaction()
| |
| build | back to summary |
|---|---|
| public TransactionBuilder build() Build a transaction context to surround a piece of transactional work
| |
| getCurrentContext | back to summary |
|---|---|
public TransactionContext getCurrentContext()
| |
| getRollbackOnly | back to summary |
|---|---|
| public boolean getRollbackOnly() throws IllegalStateException Gets the rollback status of the active transaction
| |
| ignoreException | back to summary |
|---|---|
| public void ignoreException(Throwable t) throws IllegalStateException Marks that the current transaction should not be rolled back if the supplied Exception is thrown by the current transactional work
| |
| setRollbackOnly | back to summary |
|---|---|
| public void setRollbackOnly() throws IllegalStateException Marks the current transaction to be rolled back
| |