|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Creates different kinds of requests.
| Method Summary | |
ActivateClassRequest |
getActivateClassRequest(java.lang.Class cls,
Message m,
FOStorePMF pmf)
Creates a request object to activate the class corresponding to the given oid. |
BeginTxRequest |
getBeginTxRequest(Message m,
FOStorePMF pmf,
boolean optimistic)
Creates a request object which notifies the store of the kind of transaction that is starting. |
CommitRequest |
getCommitRequest(Message m,
FOStorePMF pmf)
Creates a request object which causes previous operations to commit. |
CreateOIDRequest |
getCreateOIDRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
OID oid,
PersistenceManagerInternal pm)
Creates a request object that will get a datastore OID for a provisional OID. |
DeleteRequest |
getDeleteRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
Creates a request object to cause a persistent object in the store to be deleted. |
DumpRequest |
getDumpRequest(DumpOption option,
java.lang.String className,
Message m,
FOStorePMF pmf)
Creates a request object to get information from the store. |
FetchRequest |
getFetchRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
Creates a request object to cause one or more fields of a persistent object to be read from the store. |
GetClassRequest |
getGetClassRequest(CLID clid,
Message m,
FOStorePMF pmf,
PersistenceManagerInternal pm)
Creates a request object to cause the java.lang.Class associated with the given CLID to be provided. |
GetExtentRequest |
getGetExtentRequest(FOStoreExtent extent,
java.lang.Class pcClass,
boolean subclasses,
Message m,
PersistenceManagerInternal pm)
Creates a request object to cause a particular class's extent to be retrieved. |
GetInstancesRequest |
getGetInstancesRequest(java.util.ArrayList oids,
int start,
int numInstances,
Message m,
PersistenceManagerInternal pm,
java.lang.Class cls)
Creates a request to get instances for some oids. |
InsertRequest |
getInsertRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
Creates a request object to cause a persistent object to be inserted into the datastore. |
RollbackRequest |
getRollbackRequest(Message m,
FOStorePMF pmf)
Creates a request object which causes previous operations to rollback. |
UpdateRequest |
getUpdateRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
java.util.BitSet loadedFields,
java.util.BitSet dirtyFields,
boolean optimistic)
Creates a request object to cause one or more fields of a persistent object to be updated in the store. |
VerifyRequest |
getVerifyRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
boolean verifyFields,
java.util.BitSet loadedFields)
Creates a request object to verify that in-memory data is the same as that in the database. |
| Method Detail |
public CreateOIDRequest getCreateOIDRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
OID oid,
PersistenceManagerInternal pm)
public ActivateClassRequest getActivateClassRequest(java.lang.Class cls,
Message m,
FOStorePMF pmf)
cls - Class to be activated.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public InsertRequest getInsertRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
sm - StateManagerInternal of the object to be stored in the
datastore.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public UpdateRequest getUpdateRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
java.util.BitSet loadedFields,
java.util.BitSet dirtyFields,
boolean optimistic)
sm - StateManagerInternal of the object to be updated.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.loadedFields - Set of fields loaded from the database.dirtyFields - Set of fields that are to be flushed and
verified against the those in the database, if this
update is within the context of an optimistic
transaction.optimistic - If true, then update is happening in context of
optimistic transaction, otherwise datastore transaction.
public VerifyRequest getVerifyRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf,
boolean verifyFields,
java.util.BitSet loadedFields)
sm - StateManagerInternal of the object to be verified.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.verifyFields - If true, verify values of object, otherwise verify
only existence (and ignore remaining parameters).loadedFields - Set of fields to be verified against those in the
database.
public FetchRequest getFetchRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
sm - StateManagerInternal of the object whose field(s) are to be
read.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public GetExtentRequest getGetExtentRequest(FOStoreExtent extent,
java.lang.Class pcClass,
boolean subclasses,
Message m,
PersistenceManagerInternal pm)
extent - FOStoreExtent for which the request is being created.pcClass - Class of the objects whose extent is sought. It is
required that the caller ensure that the given pcClass
implement javax.jdo.PersistenceCapable.subclasses - If false, retrieve instances of pcClass only; if true
retrieve those plus all instances of subclasses of pcClass.m - Message by which the request is to be sent to the store.pm - PersistenceManager on whose behalf the request is taking
place.
public GetInstancesRequest getGetInstancesRequest(java.util.ArrayList oids,
int start,
int numInstances,
Message m,
PersistenceManagerInternal pm,
java.lang.Class cls)
oids - List of oids for which instances are needed.start - Starting index in oids for which instances are needed.numInstances - Number of instances which are needed.pm - PersistenceManager on whose behalf the request is taking
place.cls - Candidate Class for which instances are being obtained.
public DeleteRequest getDeleteRequest(StateManagerInternal sm,
Message m,
FOStorePMF pmf)
sm - StateManagerInternal of the object to delete in the store.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public GetClassRequest getGetClassRequest(CLID clid,
Message m,
FOStorePMF pmf,
PersistenceManagerInternal pm)
clid - CLID of the class that is needed.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.pm - PersistenceManager used to load the class.
place.
public BeginTxRequest getBeginTxRequest(Message m,
FOStorePMF pmf,
boolean optimistic)
m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.optimistic - Indicates whether an optimistic or datastore
transaction is beginning.
public CommitRequest getCommitRequest(Message m,
FOStorePMF pmf)
m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public RollbackRequest getRollbackRequest(Message m,
FOStorePMF pmf)
m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
public DumpRequest getDumpRequest(DumpOption option,
java.lang.String className,
Message m,
FOStorePMF pmf)
option - Diagnostic parameter code.className - Optional class name.m - Message by which the request is to be sent to the store.pmf - FOStorePMF in which the request is taking place.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||