|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SceneRepository
The scene repository provides the basic interface for loading and updating scene data. It is used by the scene registry and though more scene related persistence services may be needed in a full-fledged application, the scene repository only encapsulates those needed by the scene registry and other services provided by the Whirled framework.
| Method Summary | |
|---|---|
void |
applyAndRecordUpdate(SceneModel model,
SceneUpdate update)
Applise the supplied scene update to persistent representation of its associated scene, then stores the update persistently for future invocations of the server to load. |
Object |
loadExtras(int sceneId,
SceneModel model)
Loads optional additional scene data. |
SceneModel |
loadSceneModel(int sceneId)
Fetches the model for the scene with the specified scene id. |
UpdateList |
loadUpdates(int sceneId)
Fetches the set of updates associated with the specified scene. |
| Method Detail |
|---|
SceneModel loadSceneModel(int sceneId)
throws PersistenceException,
NoSuchSceneException
PersistenceException - thrown if an error occurs attempting to load the scene data.
NoSuchSceneException - thrown if no scene exists with the specified scene id.
UpdateList loadUpdates(int sceneId)
throws PersistenceException
PersistenceException - thrown if an error occurs attempting to load the scene
updates.
Object loadExtras(int sceneId,
SceneModel model)
throws PersistenceException
SceneManager.gotSceneData(java.lang.Object).
PersistenceException
void applyAndRecordUpdate(SceneModel model,
SceneUpdate update)
throws PersistenceException
PersistenceException - thrown if an error occurs attempting to apply the scene
update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||