com.aranai.dungeonator
Class DungeonDataManager

java.lang.Object
  extended by com.aranai.dungeonator.DungeonDataManager

public class DungeonDataManager
extends java.lang.Object

Abstracts all data store access for Dungeonator.


Field Summary
private  DungeonDataStore dataStore
          The dungeon data store.
private  Dungeonator plugin
          The Dungeonator instance.
 
Constructor Summary
DungeonDataManager(Dungeonator plugin, DungeonDataStore dataStore)
          Instantiates the DungeonDataManager.
 
Method Summary
 DungeonChunk getChunk(java.lang.String hash)
          Gets the requested DungeonChunk from the data store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

private Dungeonator plugin
The Dungeonator instance.


dataStore

private DungeonDataStore dataStore
The dungeon data store. This may be a MySQL data store, a flatfile store, or whatever.

Constructor Detail

DungeonDataManager

public DungeonDataManager(Dungeonator plugin,
                          DungeonDataStore dataStore)
Instantiates the DungeonDataManager.

Parameters:
plugin - the Dungeonator instance
Method Detail

getChunk

public DungeonChunk getChunk(java.lang.String hash)
Gets the requested DungeonChunk from the data store.

Parameters:
hash - the hash for the chunk
Returns:
the DungeonChunk if found, or null if an error occurs