org.spicefactory.pimento.transaction
Class Transaction
java.lang.Object
org.spicefactory.pimento.transaction.Transaction
public class Transaction
- extends Object
Represents a single transaction. All operations that were bundled in a transaction instance on the client
will be executed in a single transaction on the server side.
- Author:
- Jens Halm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transaction
public Transaction(TransactionRequest request,
Metamodel metamodel,
ServiceMessageProcessor messageProcessor)
- Creates a new instance
- Parameters:
request - the request sent by the clientmetamodel - the metamodel for all entities managed by this endpointmessageProcessor - the processor responsible for handling the individual service invocations
execute
public TransactionResponse execute()
- Executes the transaction and returns the response to be sent to the client.
- Returns:
- the response to be sent to the client