RetryingTransactionHelper
instancepublic class TransactionUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TransactionUtil.TransactionWork<Result>
Deprecated.
|
Constructor and Description |
---|
TransactionUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <R> R |
executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork<R> transactionWork)
Deprecated.
Use a
RetryingTransactionHelper instance |
static <R> R |
executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork<R> transactionWork,
boolean readOnly)
Deprecated.
Use a
RetryingTransactionHelper instance |
static <R> R |
executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork<R> transactionWork)
Deprecated.
Use a
RetryingTransactionHelper instance |
static <R> R |
executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork<R> transactionWork,
boolean readOnly)
Deprecated.
Use a
RetryingTransactionHelper instance |
static void |
flush()
Deprecated.
Flush transaction.
|
public static void flush()
public static <R> R executeInUserTransaction(TransactionService transactionService, TransactionUtil.TransactionWork<R> transactionWork)
RetryingTransactionHelper
instancetransactionService
- the transaction servicetransactionWork
- the transaction workRuntimeException
- if the transaction was rolled backpublic static <R> R executeInUserTransaction(TransactionService transactionService, TransactionUtil.TransactionWork<R> transactionWork, boolean readOnly)
RetryingTransactionHelper
instancetransactionService
- the transaction servicetransactionWork
- the transaction workreadOnly
- true if the transaction should be read-onlyRuntimeException
- if the transaction was rolled backpublic static <R> R executeInNonPropagatingUserTransaction(TransactionService transactionService, TransactionUtil.TransactionWork<R> transactionWork)
RetryingTransactionHelper
instancetransactionService
- the transaction servicetransactionWork
- the transaction workRuntimeException
- if the transaction was rolled backpublic static <R> R executeInNonPropagatingUserTransaction(TransactionService transactionService, TransactionUtil.TransactionWork<R> transactionWork, boolean readOnly)
RetryingTransactionHelper
instancetransactionService
- the transaction servicetransactionWork
- the transaction workreadOnly
- true if the transaction should be read-onlyRuntimeException
- if the transaction was rolled backCopyright © 2005–2017 Alfresco Software. All rights reserved.