|
||||||||||
| 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.
| Method Summary | |
|---|---|
void |
close()
Method to close the persistence handler, and release any resources. |
void |
deleteObject(StateManager sm)
Deletes a persistent object from the datastore. |
void |
fetchObject(StateManager sm,
int[] fieldNumbers)
Fetches a persistent object from the database. |
java.lang.Object |
findObject(ObjectManager om,
java.lang.Object id)
Method to find a persistable object with the specified id from the datastore, if the StoreManager supports this operation (optional). |
void |
insertObject(StateManager sm)
Inserts a persistent object into the database. |
void |
locateObject(StateManager sm)
Locates this object in the datastore. |
void |
updateObject(StateManager sm,
int[] fieldNumbers)
Updates a persistent object in the datastore. |
| Method Detail |
|---|
void close()
void insertObject(StateManager sm)
sm - The state manager of the object to be inserted.
JPOXDataStoreException - when an error occurs in the datastore communication
void fetchObject(StateManager sm,
int[] fieldNumbers)
sm - The state manager of the object to be fetched.fieldNumbers - The numbers of the fields to be fetched.
JPOXObjectNotFoundException - if the object doesnt exist
JPOXDataStoreException - when an error occurs in the datastore communication
void updateObject(StateManager sm,
int[] fieldNumbers)
sm - The state manager of the object to be updated.fieldNumbers - The numbers of the fields to be updated.
JPOXDataStoreException - when an error occurs in the datastore communicationvoid deleteObject(StateManager sm)
sm - The state manager of the object to be deleted.
JPOXDataStoreException - when an error occurs in the datastore communicationvoid locateObject(StateManager sm)
sm - The StateManager for the object to be found
JPOXObjectNotFoundException - if the object doesnt exist
JPOXDataStoreException - when an error occurs in the datastore communication
java.lang.Object findObject(ObjectManager om,
java.lang.Object id)
om - the ObjectManager which will manage the objectid - the id of the object in question.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||