@ProviderType public interface TransactionControl extends TransactionStarter
| Modifier and Type | Method and Description |
|---|---|
boolean |
activeScope() |
boolean |
activeTransaction() |
TransactionBuilder |
build()
Build a transaction context to surround a piece of transactional work
|
TransactionContext |
getCurrentContext() |
boolean |
getRollbackOnly()
Gets the rollback status of the active transaction
|
void |
ignoreException(java.lang.Throwable t)
Marks that the current transaction should not be rolled back if the
supplied Exception is thrown by the current transactional work
|
void |
setRollbackOnly()
Marks the current transaction to be rolled back
|
notSupported, required, requiresNew, supportsTransactionBuilder build()
boolean activeTransaction()
boolean activeScope()
TransactionContext getCurrentContext()
boolean getRollbackOnly()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if no transaction is activevoid setRollbackOnly()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if no transaction is activevoid ignoreException(java.lang.Throwable t)
throws java.lang.IllegalStateException
t - The exception to ignorejava.lang.IllegalStateException - if no transaction is activeCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0