org.spicefactory.pimento.io
Class PimentoParameters

java.lang.Object
  extended by org.spicefactory.pimento.io.PimentoParameters
All Implemented Interfaces:
Externalizable

public class PimentoParameters
extends Object
implements Externalizable

Holds the parameters sent to the server in a Pimento-managed Cinnamon service request.

Author:
Jens Halm

Constructor Summary
PimentoParameters()
           
 
Method Summary
 List<FullEntitySnapshot> getNewEntities()
          Get all entities that should be persisted in this request.
 List<Object> getOperationParameters()
          Get the actual method parameters that should be passed to the service invocation.
 List<ApplicableEntitySnapshot> getUpdatedEntities()
          Get all entities that should be updated (merged) in this request.
 void readExternal(DataInput input)
          Restores the content of this object from the DataInput instance.
 String toString()
           
 void writeExternal(DataOutput output)
          Saves the content of this object to the DataOutput instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PimentoParameters

public PimentoParameters()
Method Detail

getNewEntities

public List<FullEntitySnapshot> getNewEntities()
Get all entities that should be persisted in this request.

Returns:
all entities that should be persisted in this request

getUpdatedEntities

public List<ApplicableEntitySnapshot> getUpdatedEntities()
Get all entities that should be updated (merged) in this request.

Returns:
all entities that should be updated (merged) in this request

getOperationParameters

public List<Object> getOperationParameters()
Get the actual method parameters that should be passed to the service invocation. For peristent entities the list of parameters can contain entity snapshots. Otherwise it can contain simple values or classes mapped by Cinnamon but not managed by Pimento Data Services.

Returns:
the actual method parameters that should be passed to the service invocation

readExternal

public void readExternal(DataInput input)
Description copied from interface: Externalizable
Restores the content of this object from the DataInput instance. Values must be read in the same sequence as they were written on the client side.

Specified by:
readExternal in interface Externalizable
Parameters:
input - the AMF3 data to read from

writeExternal

public void writeExternal(DataOutput output)
Description copied from interface: Externalizable
Saves the content of this object to the DataOutput instance.

Specified by:
writeExternal in interface Externalizable
Parameters:
output - the output to write to

toString

public String toString()
Overrides:
toString in class Object