|
|||||||||||
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.ActivateClassRequest
Represents a request to cause the description of a class in the client to have a representation in the store.
Field Summary | |
private CLID |
clid
|
protected FOStoreSchemaUID |
fsuid
uid corresponding to the same java.lang.Class that initializes jdoClass. |
private static RuntimeJavaModelFactory |
javaModelFactory
RuntimeJavaModelFactory. |
protected 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 I18NHelper |
msg
|
protected FOStoreOutput |
out
Stream to which request writes itself. |
protected FOStorePMF |
pmf
PersistenceManagerFactory via which request is being done. |
protected StateManagerInternal |
sm
The state manager which is the subject of this request. |
Constructor Summary | |
(package private) |
ActivateClassRequest(java.lang.Class cls,
Message m,
FOStorePMF pmf)
|
Method Summary | |
void |
doRequest()
Does whatever it is that the kind of request does in actually making a request of the store. |
void |
doRequestBody()
Subclasses must implement in this method the actual writing of their Request type-specific data. |
protected RequestId |
getId()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final CLID clid
private static final RuntimeJavaModelFactory javaModelFactory
protected StateManagerInternal sm
protected final FOStorePMF pmf
protected final FOStoreOutput out
protected JDOClass jdoClass
protected FOStoreSchemaUID fsuid
protected static final I18NHelper msg
static final org.apache.commons.logging.Log logger
protected static final int LENGTH_COOKIE
Constructor Detail |
ActivateClassRequest(java.lang.Class cls, Message m, FOStorePMF pmf)
Method Detail |
public void doRequestBody() throws java.io.IOException
AbstractRequest
doRequestBody
in class AbstractRequest
java.io.IOException
The format of this request is (aside from the request header):
class's name: String
clid: CLID (will always be provisional)
FOStoreSchemaUID for class
numPCSuperclasses: int
foreach PCSuperclass in inheritance order going towards Object:
the superclass' class name
the superclass's CLID
the superclass's FOStoreSchemaUID
numFields: int
scoField: boolean
foreach field in the class:
the field's name
the field's CLID
the field's class's FOStoreSchemaUID
Note that we do not currently support all sco information, and will
have to ammend this when we do. In that case, we will write also
write, for each field:
scoField: boolean
elementType: String
allowNulls: boolean
initialSize: int
Note that we write out information in order of name, CLID, FSUID in all
cases above.
public void handleReply(Status status, java.io.DataInput in, int length) throws java.io.IOException
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.Request.handleReply(org.apache.jdo.impl.fostore.Status, java.io.DataInput, int)
protected RequestId getId()
public final void doRequest() throws java.io.IOException
Request
doRequest
in interface Request
java.io.IOException
- in case of errors with the stream.Request.doRequest()
public StateManagerInternal getStateManager()
getStateManager
in interface Request
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |