|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.transaction.TransactionUtil
RetryingTransactionHelper instance
public class TransactionUtil
Class containing transactions helper methods and interfaces.
| Nested Class Summary | |
|---|---|
static interface |
TransactionUtil.TransactionWork
Deprecated. |
| Constructor Summary | |
|---|---|
TransactionUtil()
Deprecated. |
|
| Method Summary | |
|---|---|
static java.lang.Object |
executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork)
Deprecated. Use a RetryingTransactionHelper instance |
static java.lang.Object |
executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork,
boolean readOnly)
Deprecated. Use a RetryingTransactionHelper instance |
static java.lang.Object |
executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork)
Deprecated. Use a RetryingTransactionHelper instance |
static java.lang.Object |
executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork,
boolean readOnly)
Deprecated. Use a RetryingTransactionHelper instance |
static void |
flush()
Deprecated. Flush transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionUtil()
| Method Detail |
|---|
public static void flush()
public static java.lang.Object executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork)
RetryingTransactionHelper instance
transactionService - the transaction servicetransactionWork - the transaction work
java.lang.RuntimeException - if the transaction was rolled back
public static java.lang.Object executeInUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork,
boolean readOnly)
RetryingTransactionHelper instance
transactionService - the transaction servicetransactionWork - the transaction workreadOnly - true if the transaction should be read-only
java.lang.RuntimeException - if the transaction was rolled back
public static java.lang.Object executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork)
RetryingTransactionHelper instance
transactionService - the transaction servicetransactionWork - the transaction work
java.lang.RuntimeException - if the transaction was rolled back
public static java.lang.Object executeInNonPropagatingUserTransaction(TransactionService transactionService,
TransactionUtil.TransactionWork transactionWork,
boolean readOnly)
RetryingTransactionHelper instance
transactionService - the transaction servicetransactionWork - the transaction workreadOnly - true if the transaction should be read-only
java.lang.RuntimeException - if the transaction was rolled back
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||