org.apache.jdo.impl.fostore
Interface FieldRequest

All Superinterfaces:
Request
All Known Implementing Classes:
FetchRequest

interface FieldRequest
extends Request

Represents a request to manipulate (read or update) the fields of an object.

Author:
Dave Bristor

Method Summary
 void addFieldNum(int fieldNum)
          Adds to the set of fields that are to be manipulated.
 void doRequest()
          Does whatever it is that the kind of request does in actually making a request of the store.
 StateManagerInternal getStateManager()
          Get the StateManager associated with this request, null if none.
 void handleReply(Status status, java.io.DataInput in, int length)
          Processes the results of the effect of the request in the store.
 void setFieldNums(int[] fieldNums)
          Indicates which fields are to be manipulated in the object.
 

Method Detail

setFieldNums

public void setFieldNums(int[] fieldNums)
Indicates which fields are to be manipulated in the object.

Parameters:
fieldNums - The set of field numbers indicating the fields that are to be manipulated.

addFieldNum

public void addFieldNum(int fieldNum)
Adds to the set of fields that are to be manipulated.

Parameters:
fieldNum - Number of the field to be manipulated.

doRequest

public void doRequest()
               throws java.io.IOException
Does whatever it is that the kind of request does in actually making a request of the store.

Throws:
java.io.IOException - in case of errors with the stream.

handleReply

public void handleReply(Status status,
                        java.io.DataInput in,
                        int length)
                 throws java.io.IOException
Processes the results of the effect of the request in the store. To be invoked after the store has processed the request, and has returned information about that request, such as its status and any accompanying data.

Parameters:
in - the input stream.
length - the length of data in the stream.
status - Indication as to the success, failure, etc. of the request as handled by the store.
Throws:
java.io.IOException - if any problems reading the stream.

getStateManager

public StateManagerInternal getStateManager()
Get the StateManager associated with this request, null if none.

Returns:
the StateManager.