sf.qof.session
Interface SessionRunner<T>
- Type Parameters:
T - the type of the result of the executed code. If no result is
returned this type should be Void
- All Known Implementing Classes:
- BaseSessionRunner, DefaultSessionRunner, RetrySessionRunner
public interface SessionRunner<T>
The SessionRunner interface should be implemented for
code that runs in a session context.
- See Also:
DefaultSessionRunner,
RetrySessionRunner,
BaseSessionRunner
|
Method Summary |
T |
execute(Object... arguments)
A call to execute starts a new session and executes some code
in a transactional context. |
execute
T execute(Object... arguments)
throws SystemException
- A call to
execute starts a new session and executes some code
in a transactional context.
If an exception is thrown by the executed code the
transaction is rolled back otherwise it is commited.
- Parameters:
arguments - arguments that are passed to the executed code
- Returns:
- the result of the executed code
- Throws:
SystemException - thrown if an unexpected error occured
Copyright © 2007 brunella ltd. All Rights Reserved.