|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.AbstractRequest
org.apache.jdo.impl.fostore.FetchRequest
Represents a request to read the values of one or more fields for a persistent object from the store.
Field Summary | |
protected FOStoreSchemaUID |
fsuid
uid corresponding to the same java.lang.Class that initializes jdoClass. |
protected org.apache.jdo.model.jdo.JDOClass |
jdoClass
Class meta data of the object represented by the constructor's given state manager |
protected static int |
LENGTH_COOKIE
|
(package private) static org.apache.commons.logging.Log |
logger
Logger |
protected static org.apache.jdo.util.I18NHelper |
msg
|
private OID |
oid
|
protected FOStoreOutput |
out
Stream to which request writes itself. |
private java.lang.Object |
owner
|
private org.apache.jdo.pm.PersistenceManagerInternal |
pm
|
protected FOStorePMF |
pmf
PersistenceManagerFactory via which request is being done. |
protected org.apache.jdo.state.StateManagerInternal |
sm
The state manager which is the subject of this request. |
Constructor Summary | |
(package private) |
FetchRequest(org.apache.jdo.state.StateManagerInternal sm,
Message m,
FOStorePMF pmf)
|
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. |
protected void |
doRequestBody()
Subclasses must implement in this method the actual writing of their Request type-specific data. |
protected RequestId |
getId()
|
org.apache.jdo.state.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)
Determines which fields (at least) will be read from the store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final OID oid
private final java.lang.Object owner
private final org.apache.jdo.pm.PersistenceManagerInternal pm
protected org.apache.jdo.state.StateManagerInternal sm
protected final FOStorePMF pmf
protected final FOStoreOutput out
protected org.apache.jdo.model.jdo.JDOClass jdoClass
protected FOStoreSchemaUID fsuid
protected static final org.apache.jdo.util.I18NHelper msg
static final org.apache.commons.logging.Log logger
protected static final int LENGTH_COOKIE
Constructor Detail |
FetchRequest(org.apache.jdo.state.StateManagerInternal sm, Message m, FOStorePMF pmf)
Method Detail |
protected void doRequestBody() throws java.io.IOException
AbstractRequest
doRequestBody
in class AbstractRequest
java.io.IOException
public void handleReply(Status status, java.io.DataInput in, int length) throws java.io.IOException
Request
handleReply
in interface Request
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.
java.io.IOException
- if any problems reading the stream.public void setFieldNums(int[] fieldNums)
setFieldNums
in interface FieldRequest
fieldNums
- Numbers of the fields which are to be read from the
store.public void addFieldNum(int fieldNum)
addFieldNum
in interface FieldRequest
fieldNum
- Number of the field to be manipulated.public void doRequest() throws java.io.IOException
java.io.IOException
- in case of errors with the stream.public org.apache.jdo.state.StateManagerInternal getStateManager()
protected RequestId getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |