|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.whirled.server.persist.DummySceneRepository
public class DummySceneRepository
The dummy scene repository just pretends to load and store scenes, but in fact it just creates new blank scenes when requested to load a scene and does nothing when requested to save one.
| Constructor Summary | |
|---|---|
DummySceneRepository()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummySceneRepository()
| Method Detail |
|---|
public SceneModel loadSceneModel(int sceneId)
throws PersistenceException,
NoSuchSceneException
SceneRepository
loadSceneModel in interface SceneRepositoryPersistenceException - thrown if an error occurs attempting to load the scene data.
NoSuchSceneException - thrown if no scene exists with the specified scene id.
public UpdateList loadUpdates(int sceneId)
throws PersistenceException
SceneRepository
loadUpdates in interface SceneRepositoryPersistenceException - thrown if an error occurs attempting to load the scene
updates.
public Object loadExtras(int sceneId,
SceneModel model)
throws PersistenceException
SceneRepositorySceneManager.gotSceneData(java.lang.Object).
loadExtras in interface SceneRepositoryPersistenceException
public void applyAndRecordUpdate(SceneModel model,
SceneUpdate update)
throws PersistenceException
SceneRepository
applyAndRecordUpdate in interface SceneRepositoryPersistenceException - 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 | |||||||||