|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionalHostContextAccessor
Adds extra transaction control features from the underlying product.
Nested Class Summary | |
---|---|
static class |
TransactionalHostContextAccessor.Permission
Transaction permission |
static class |
TransactionalHostContextAccessor.Propagation
Transaction propagation, equivalent to the corresponding values of javax.ejb.TransactionAttributeType |
Nested classes/interfaces inherited from interface com.atlassian.sal.spi.HostContextAccessor |
---|
com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> |
Method Summary | ||
---|---|---|
|
doInTransaction(TransactionalHostContextAccessor.Permission permission,
com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
Runs an action in a transaction and returns a optional value. |
|
|
doInTransaction(TransactionalHostContextAccessor.Propagation propagation,
com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
Runs an action in a transaction and returns a optional value. |
|
|
doInTransaction(TransactionalHostContextAccessor.Propagation propagation,
TransactionalHostContextAccessor.Permission permission,
com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
Runs an action in a transaction and returns a optional value. |
Methods inherited from interface com.atlassian.sal.spi.HostContextAccessor |
---|
doInTransaction, getComponentsOfType |
Method Detail |
---|
<T> T doInTransaction(TransactionalHostContextAccessor.Propagation propagation, com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
propagation
- the propagation mode to usecallback
- The callback class to execute
java.lang.RuntimeException
- if anything went wrong. The caller will be responsible for rolling back.<T> T doInTransaction(TransactionalHostContextAccessor.Permission permission, com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
TransactionalHostContextAccessor.Propagation.REQUIRED
.
permission
- if TransactionalHostContextAccessor.Permission.READ_ONLY
, attempt to use a read only transactioncallback
- The callback class to execute
java.lang.RuntimeException
- if anything went wrong. The caller will be responsible for rolling back.<T> T doInTransaction(TransactionalHostContextAccessor.Propagation propagation, TransactionalHostContextAccessor.Permission permission, com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> callback)
propagation
- the propagation mode to usepermission
- if TransactionalHostContextAccessor.Permission.READ_ONLY
, attempt to use a read only transactioncallback
- The callback class to execute
java.lang.RuntimeException
- if anything went wrong. The caller will be responsible for rolling back.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |