org.alfresco.repo.transaction
Class TransactionUtil

java.lang.Object
  extended by org.alfresco.repo.transaction.TransactionUtil

Deprecated. Use a RetryingTransactionHelper instance

public class TransactionUtil
extends java.lang.Object

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

TransactionUtil

public TransactionUtil()
Deprecated. 
Method Detail

flush

public static void flush()
Deprecated. 
Flush transaction.


executeInUserTransaction

public static java.lang.Object executeInUserTransaction(TransactionService transactionService,
                                                        TransactionUtil.TransactionWork transactionWork)
Deprecated. Use a RetryingTransactionHelper instance

Execute the transaction work in a user transaction

Parameters:
transactionService - the transaction service
transactionWork - the transaction work
Throws:
java.lang.RuntimeException - if the transaction was rolled back

executeInUserTransaction

public static java.lang.Object executeInUserTransaction(TransactionService transactionService,
                                                        TransactionUtil.TransactionWork transactionWork,
                                                        boolean readOnly)
Deprecated. Use a RetryingTransactionHelper instance

Execute the transaction work in a user transaction. Any current transaction will be continued.

Parameters:
transactionService - the transaction service
transactionWork - the transaction work
readOnly - true if the transaction should be read-only
Throws:
java.lang.RuntimeException - if the transaction was rolled back

executeInNonPropagatingUserTransaction

public static java.lang.Object executeInNonPropagatingUserTransaction(TransactionService transactionService,
                                                                      TransactionUtil.TransactionWork transactionWork)
Deprecated. Use a RetryingTransactionHelper instance

Execute the transaction work in a writable, non-propagating user transaction. Any current transaction will be suspended a new one started.

Parameters:
transactionService - the transaction service
transactionWork - the transaction work
Throws:
java.lang.RuntimeException - if the transaction was rolled back

executeInNonPropagatingUserTransaction

public static java.lang.Object executeInNonPropagatingUserTransaction(TransactionService transactionService,
                                                                      TransactionUtil.TransactionWork transactionWork,
                                                                      boolean readOnly)
Deprecated. Use a RetryingTransactionHelper instance

Execute the transaction work in a non-propagating user transaction. Any current transaction will be suspended a new one started.

Parameters:
transactionService - the transaction service
transactionWork - the transaction work
readOnly - true if the transaction should be read-only
Throws:
java.lang.RuntimeException - if the transaction was rolled back


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.