com.planet_ink.coffee_mud.core.database
Class DataLoader

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.database.DataLoader

public class DataLoader
extends java.lang.Object


Field Summary
protected  DBConnector DB
           
protected  DatabaseEngine engine
           
 
Constructor Summary
DataLoader(DatabaseEngine engine, DBConnector newDB)
           
 
Method Summary
 DatabaseEngine.PlayerData createPlayerData()
           
 int DBCount(java.lang.String playerID, java.lang.String section)
           
 int DBCountBySection(java.lang.String section)
           
 DatabaseEngine.PlayerData DBCreate(java.lang.String playerID, java.lang.String section, java.lang.String key, java.lang.String data)
           
 void DBDelete(java.lang.String section)
           
 void DBDelete(java.lang.String playerID, java.lang.String section)
           
 void DBDelete(java.lang.String playerID, java.lang.String section, java.lang.String key)
           
 void DBDeletePlayer(java.lang.String playerID)
           
 java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String section)
           
 java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID, java.util.List<java.lang.String> sections)
           
 java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID, java.lang.String section)
           
 java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID, java.lang.String section, java.lang.String key)
           
 java.util.List<DatabaseEngine.PlayerData> DBReadAllPlayerData(java.lang.String playerID)
           
 void DBReadArtifacts()
           
 java.util.List<java.lang.String> DBReadAuthorsBySection(java.lang.String section)
           
 java.util.List<DatabaseEngine.PlayerData> DBReadByKeyMask(java.lang.String section, java.lang.String keyMask)
           
 java.util.List<DatabaseEngine.PlayerData> DBReadKey(java.lang.String key)
           
 java.util.List<java.lang.String> DBReadNames(java.lang.String section)
           
 DatabaseEngine.PlayerData DBReCreate(java.lang.String name, java.lang.String section, java.lang.String key, java.lang.String xml)
           
 void DBUpdate(java.lang.String key, java.lang.String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB

protected DBConnector DB

engine

protected DatabaseEngine engine
Constructor Detail

DataLoader

public DataLoader(DatabaseEngine engine,
                  DBConnector newDB)
Method Detail

DBRead

public java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID,
                                                        java.lang.String section)

DBReadAllPlayerData

public java.util.List<DatabaseEngine.PlayerData> DBReadAllPlayerData(java.lang.String playerID)

DBCount

public int DBCount(java.lang.String playerID,
                   java.lang.String section)

DBCountBySection

public int DBCountBySection(java.lang.String section)

DBReadAuthorsBySection

public java.util.List<java.lang.String> DBReadAuthorsBySection(java.lang.String section)

DBReadByKeyMask

public java.util.List<DatabaseEngine.PlayerData> DBReadByKeyMask(java.lang.String section,
                                                                 java.lang.String keyMask)

DBReadKey

public java.util.List<DatabaseEngine.PlayerData> DBReadKey(java.lang.String key)

DBRead

public java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID,
                                                        java.lang.String section,
                                                        java.lang.String key)

DBRead

public java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String section)

DBReadNames

public java.util.List<java.lang.String> DBReadNames(java.lang.String section)

DBRead

public java.util.List<DatabaseEngine.PlayerData> DBRead(java.lang.String playerID,
                                                        java.util.List<java.lang.String> sections)

DBReCreate

public DatabaseEngine.PlayerData DBReCreate(java.lang.String name,
                                            java.lang.String section,
                                            java.lang.String key,
                                            java.lang.String xml)

DBUpdate

public void DBUpdate(java.lang.String key,
                     java.lang.String xml)

DBDelete

public void DBDelete(java.lang.String playerID,
                     java.lang.String section)

DBDeletePlayer

public void DBDeletePlayer(java.lang.String playerID)

DBDelete

public void DBDelete(java.lang.String playerID,
                     java.lang.String section,
                     java.lang.String key)

DBDelete

public void DBDelete(java.lang.String section)

DBCreate

public DatabaseEngine.PlayerData DBCreate(java.lang.String playerID,
                                          java.lang.String section,
                                          java.lang.String key,
                                          java.lang.String data)

DBReadArtifacts

public void DBReadArtifacts()

createPlayerData

public DatabaseEngine.PlayerData createPlayerData()