public interface TxCommand extends Serializable
An instance implementing this interface may be executed within a transaction
context different from its caller by calling
TxService.executeCommand(ClientContext, String, TxCommand).
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ClientContext clientContext,
Session session)
This method is called in a separate transaction context, that is
automatically committed, unless a RuntimeException is thrown.
|
void execute(ClientContext clientContext, Session session)
clientContext - Current client contextsession - A session within a new transaction contextCopyright © 2006–2017 Esito AS. All rights reserved.