|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorePersistenceHandler
Interface defining persistence operations of a StoreManager. This performs the low level communication with the actual datastore.
| Method Summary | |
|---|---|
void |
batchEnd(ExecutionContext ectx)
Signal that a batch of operations are ending for the specified ExecutionContext. |
void |
batchStart(ExecutionContext ectx)
Signal that a batch of operations are starting for the specified ExecutionContext. |
void |
close()
Method to close the persistence handler, and release any resources. |
void |
deleteObject(ObjectProvider op)
Deletes a persistent object from the datastore. |
void |
fetchObject(ObjectProvider op,
int[] fieldNumbers)
Fetches a persistent object from the database. |
java.lang.Object |
findObject(ExecutionContext ectx,
java.lang.Object id)
Method to find a persistable object with the specified id from the datastore, if the StoreManager supports this operation (optional). |
java.lang.Object[] |
findObjects(ExecutionContext ectx,
java.lang.Object[] ids)
Method to find an array of objects with the specified identities from the datastore. |
void |
insertObject(ObjectProvider op)
Inserts a persistent object into the database. |
void |
locateObject(ObjectProvider op)
Locates this object in the datastore. |
void |
locateObjects(ObjectProvider[] ops)
Locates object(s) in the datastore. |
void |
updateObject(ObjectProvider op,
int[] fieldNumbers)
Updates a persistent object in the datastore. |
| Method Detail |
|---|
void close()
void batchStart(ExecutionContext ectx)
ectx - The ExecutionContextvoid batchEnd(ExecutionContext ectx)
ectx - The ExecutionContextvoid insertObject(ObjectProvider op)
op - The ObjectProvider of the object to be inserted.
NucleusDataStoreException - when an error occurs in the datastore communication
void updateObject(ObjectProvider op,
int[] fieldNumbers)
op - The ObjectProvider of the object to be updated.fieldNumbers - The numbers of the fields to be updated.
NucleusDataStoreException - when an error occurs in the datastore communicationvoid deleteObject(ObjectProvider op)
op - The ObjectProvider of the object to be deleted.
NucleusDataStoreException - when an error occurs in the datastore communication
void fetchObject(ObjectProvider op,
int[] fieldNumbers)
op - The ObjectProvider of the object to be fetched.fieldNumbers - The numbers of the fields to be fetched.
NucleusObjectNotFoundException - if the object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communicationvoid locateObject(ObjectProvider op)
op - The ObjectProvider for the object to be found
NucleusObjectNotFoundException - if the object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communicationvoid locateObjects(ObjectProvider[] ops)
ops - ObjectProvider(s) for the object(s) to be found
NucleusObjectNotFoundException - if an object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communication
java.lang.Object findObject(ExecutionContext ectx,
java.lang.Object id)
ectx - The ExecutionContextid - the id of the object in question.
NucleusObjectNotFoundException - if this route is supported yet the object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communication
java.lang.Object[] findObjects(ExecutionContext ectx,
java.lang.Object[] ids)
ectx - The ExecutionContextids - identities of the object(s) to retrieve
ids)
NucleusObjectNotFoundException - if an object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||