org.spicefactory.pimento.service
Class FetchPlan

java.lang.Object
  extended by org.spicefactory.pimento.service.FetchPlan
All Implemented Interfaces:
Externalizable

public class FetchPlan
extends Object
implements Externalizable

Represents the fetch plan for a single persistent entity type for a single request.

This is an internal class usually not used by application code.

See the documentation for the client side FetchPlan class for more details.

Author:
Jens Halm

Constructor Summary
FetchPlan()
           
 
Method Summary
 FetchMode getFetchMode(int index)
          Returns the fetch mode for the property at the specified index position.
 int getTypeHandle()
          Returns the type handle for the entity this fetch plan is associated with
 void readExternal(DataInput input)
          Restores the content of this object from the DataInput instance.
 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, toString, wait, wait, wait
 

Constructor Detail

FetchPlan

public FetchPlan()
Method Detail

getFetchMode

public FetchMode getFetchMode(int index)
Returns the fetch mode for the property at the specified index position.

Parameters:
index - the index position of the property
Returns:
the fetch mode for the property at the specified index position

getTypeHandle

public int getTypeHandle()
Returns the type handle for the entity this fetch plan is associated with

Returns:
the type handle for the entity this fetch plan is associated with

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