public class DummySceneRepository extends Object implements SceneRepository
| Constructor and Description |
|---|
DummySceneRepository() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SceneModel loadSceneModel(int sceneId) throws PersistenceException, NoSuchSceneException
SceneRepositoryloadSceneModel 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
SceneRepositoryloadUpdates 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 SceneRepositoryPersistenceExceptionpublic void applyAndRecordUpdate(SceneModel model, SceneUpdate update) throws PersistenceException
SceneRepositoryapplyAndRecordUpdate in interface SceneRepositoryPersistenceException - thrown if an error occurs attempting to apply the scene
update.Copyright © 2015. All rights reserved.