Class ActionNonTxAware<R,A,E extends Exception>
java.lang.Object
org.exoplatform.services.transaction.ActionNonTxAware<R,A,E>
This class describes all the actions that are not supposed to be called
within a transaction
- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.exoplatform.services.log.LogThe logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RExecutes the actionprotected RExecutes the actionprotected abstract javax.transaction.TransactionManagerGives the Transaction Manager that will be used while executing the actionrun()Executes the action outside the context of the current tx.Executes the action outside the context of the current tx
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOGThe logger
-
-
Constructor Details
-
ActionNonTxAware
public ActionNonTxAware()
-
-
Method Details
-
run
Executes the action outside the context of the current tx- Parameters:
arg- the argument to use to execute the action- Returns:
- the result of the action
- Throws:
E- if an error occurs while executing the action
-
run
Executes the action outside the context of the current tx. This method is equivalent torun(Object[])} but withnullas parameter.- Returns:
- the result of the action
- Throws:
E- if an error occurs while executing the action
-
execute
Executes the action- Parameters:
arg- the argument to use to execute the action- Returns:
- the result of the action
- Throws:
E- if an error occurs while executing the action
-
execute
Executes the action- Parameters:
arg- the argument to use to execute the action- Returns:
- the result of the action
- Throws:
E- if an error occurs while executing the action
-
getTransactionManager
protected abstract javax.transaction.TransactionManager getTransactionManager()Gives the Transaction Manager that will be used while executing the action- Returns:
- the
TransactionManagerto use
-