|
||||||||||
| 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(Object page)
Converts a page representation to an instance of IManageablePage |
void |
destroy()
Destroy the store. |
IManageablePage |
getPage(String sessionId,
int pageId)
Restores a page from the persistent layer. |
Serializable |
prepareForSerialization(String sessionId,
Object page)
Process the page before the it gets serialized. |
void |
removePage(String sessionId,
int pageId)
Removes a page from the persistent layer. |
Object |
restoreAfterSerialization(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(String sessionId,
IManageablePage page)
Stores the page to a persistent layer. |
void |
unbind(String sessionId)
The page store should cleanup all the pages for that sessionid. |
| Method Detail |
|---|
void destroy()
IManageablePage getPage(String sessionId,
int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.
void removePage(String sessionId,
int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.
void storePage(String sessionId,
IManageablePage page)
sessionId - The session of the page that must be removedpage - The page to storevoid unbind(String sessionId)
sessionId - The session of the page that must be removed
Serializable prepareForSerialization(String sessionId,
Object page)
restoreAfterSerialization(Serializable).
sessionId - The session of the page that must be removedpage -
Object restoreAfterSerialization(Serializable serializable)
convertToPage(Object).
sessionId - The session of the page that must be removedserializable -
IManageablePage convertToPage(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 | |||||||||