org.spicefactory.pimento.transaction
Class Transaction

java.lang.Object
  extended by 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

Constructor Summary
Transaction(TransactionRequest request, Metamodel metamodel, ServiceMessageProcessor messageProcessor)
          Creates a new instance
 
Method Summary
 TransactionResponse execute()
          Executes the transaction and returns the response to be sent to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(TransactionRequest request,
                   Metamodel metamodel,
                   ServiceMessageProcessor messageProcessor)
Creates a new instance

Parameters:
request - the request sent by the client
metamodel - the metamodel for all entities managed by this endpoint
messageProcessor - the processor responsible for handling the individual service invocations
Method Detail

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