|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPageStore
IPageStore role is to mediate the storing and loading of pages done by IDataStore
s. IPageStore may pre-process the pages before passing them to
IDataStore.storeData(String, int, byte[]) and to post-process them after
IDataStore.getData(String, int).
IDataStore| Method Summary | |
|---|---|
IManageablePage |
convertToPage(java.lang.Object page)
Converts a page representation to an instance of IManageablePage |
void |
destroy()
Destroy the store. |
IManageablePage |
getPage(java.lang.String sessionId,
int pageId)
Restores a page from the persistent layer. |
java.io.Serializable |
prepareForSerialization(java.lang.String sessionId,
java.lang.Object page)
Process the page before the it gets serialized. |
void |
removePage(java.lang.String sessionId,
int pageId)
Removes a page from the persistent layer. |
java.lang.Object |
restoreAfterSerialization(java.io.Serializable serializable)
This method should restore the serialized page to intermediate object that can be converted to real page instance using convertToPage(Object). |
void |
storePage(java.lang.String sessionId,
IManageablePage page)
Stores the page to a persistent layer. |
void |
unbind(java.lang.String sessionId)
The page store should cleanup all the pages for that sessionid. |
| Method Detail |
|---|
void destroy()
IManageablePage getPage(java.lang.String sessionId,
int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.
void removePage(java.lang.String sessionId,
int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.
void storePage(java.lang.String sessionId,
IManageablePage page)
sessionId - The session of the page that must be removedpage - The page to storevoid unbind(java.lang.String sessionId)
sessionId - The session of the page that must be removed
java.io.Serializable prepareForSerialization(java.lang.String sessionId,
java.lang.Object page)
restoreAfterSerialization(Serializable).
sessionId - The session of the page that must be removedpage -
java.lang.Object restoreAfterSerialization(java.io.Serializable serializable)
convertToPage(Object).
sessionId - The session of the page that must be removedserializable -
IManageablePage convertToPage(java.lang.Object page)
IManageablePage
page - some kind of page representation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||