com.planet_ink.coffee_mud.core.database
Class RoomLoader

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

public class RoomLoader
extends java.lang.Object


Nested Class Summary
protected static class RoomLoader.StuffClass
           
 
Field Summary
protected  DBConnector DB
           
 
Constructor Summary
RoomLoader(DBConnector newDB)
           
 
Method Summary
 int[] DBCountRoomMobsItems(java.lang.String roomID)
           
 void DBCreate(Area A)
           
 void DBCreate(Room room)
           
 void DBCreateThisItem(java.lang.String roomID, Item thisItem)
           
 void DBCreateThisMOB(java.lang.String roomID, MOB thisMOB)
           
 void DBDelete(Area A)
           
 void DBDelete(Room room)
           
 void DBDeleteAreaAndRooms(Area A)
           
 void DBDeleteRoomItem(java.lang.String roomID, Item item)
           
 void DBDeleteRoomMOB(java.lang.String roomID, MOB mob)
           
 java.lang.String DBIsAreaName(java.lang.String name)
           
protected  void DBReadAllAreas()
           
 void DBReadAllRooms(RoomnumberSet set)
           
 void DBReadArea(Area A)
           
 boolean DBReadAreaFull(java.lang.String areaName)
           
 Area DBReadAreaObject(java.lang.String areaName)
           
 RoomnumberSet DBReadAreaRoomList(java.lang.String areaName, boolean reportStatus)
           
 void DBReadCatalogs()
           
 void DBReadContent(java.lang.String thisRoomID, Room thisRoom, java.util.Map<java.lang.String,Room> rooms, RoomnumberSet unloadedRooms, boolean setStatus, boolean makeLive)
           
 Room DBReadRoomData(java.lang.String singleRoomIDtoLoad, boolean reportStatus)
           
 java.util.Map<java.lang.String,Room> DBReadRoomData(java.lang.String singleRoomIDtoLoad, RoomnumberSet roomsToLoad, boolean reportStatus, java.util.List<java.lang.String> unknownAreas, RoomnumberSet unloadedRooms)
           
 java.lang.String DBReadRoomDesc(java.lang.String roomID)
           
 void DBReadRoomExits(java.lang.String roomID, java.util.Map<java.lang.String,Room> allRooms, boolean reportStatus, RoomnumberSet unloadedRooms)
           
 void DBReadRoomExits(java.lang.String roomID, Room room, boolean reportStatus)
           
 java.lang.String DBReadRoomMOBMiscText(java.lang.String roomID, java.lang.String mobID)
           
 Room DBReadRoomObject(java.lang.String roomIDtoLoad, boolean reportStatus)
           
 Room[] DBReadRoomObjects(java.lang.String areaName, boolean reportStatus)
           
 void DBReadSpace()
           
 void DBReCreate(Room room, java.lang.String oldID)
           
 boolean DBReReadRoomData(Room room)
           
 void DBUpdate(java.lang.String areaID, Area A)
           
 void DBUpdateAll(Room room)
           
 void DBUpdateExits(Room room)
           
 void DBUpdateItems(Room room)
           
 void DBUpdateMOBs(Room room)
           
 void DBUpdateRoom(Room room)
           
 void DBUpdateRoomItem(java.lang.String roomID, Item item)
           
 void DBUpdateRoomMOB(java.lang.String roomID, MOB mob)
           
 void DBUpdateTheseItems(Room room, java.util.List<Item> items)
           
 void DBUpdateTheseMOBs(Room room, java.util.List<MOB> mobs)
           
protected  DBConnector.DBPreparedBatchEntry doBulkInsert(java.lang.StringBuilder str, java.util.List<java.lang.String> clobs, java.lang.String sql, java.lang.String clob)
           
protected  java.util.List<java.lang.String> getAreaDeleteStrings(java.lang.String areaName)
           
protected  Pair<java.lang.String,java.lang.String> getDBCreateItemString(java.lang.String roomID, Item thisItem)
           
 Pair<java.lang.String,java.lang.String> getDBCreateMOBString(java.lang.String roomID, MOB thisMOB)
           
protected  java.util.List<java.lang.String> getRoomDeleteStrings(java.lang.String roomID)
           
protected  java.lang.String getShortID(Environmental E)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB

protected DBConnector DB
Constructor Detail

RoomLoader

public RoomLoader(DBConnector newDB)
Method Detail

doBulkInsert

protected DBConnector.DBPreparedBatchEntry doBulkInsert(java.lang.StringBuilder str,
                                                        java.util.List<java.lang.String> clobs,
                                                        java.lang.String sql,
                                                        java.lang.String clob)

DBIsAreaName

public java.lang.String DBIsAreaName(java.lang.String name)

DBReadArea

public void DBReadArea(Area A)

DBReadAreaFull

public boolean DBReadAreaFull(java.lang.String areaName)

DBReadAreaObject

public Area DBReadAreaObject(java.lang.String areaName)

DBReadAllAreas

protected void DBReadAllAreas()

DBReadAreaRoomList

public RoomnumberSet DBReadAreaRoomList(java.lang.String areaName,
                                        boolean reportStatus)

DBReadRoomData

public Room DBReadRoomData(java.lang.String singleRoomIDtoLoad,
                           boolean reportStatus)

DBReadRoomObjects

public Room[] DBReadRoomObjects(java.lang.String areaName,
                                boolean reportStatus)

DBReReadRoomData

public boolean DBReReadRoomData(Room room)

DBReadRoomObject

public Room DBReadRoomObject(java.lang.String roomIDtoLoad,
                             boolean reportStatus)

DBReadRoomData

public java.util.Map<java.lang.String,Room> DBReadRoomData(java.lang.String singleRoomIDtoLoad,
                                                           RoomnumberSet roomsToLoad,
                                                           boolean reportStatus,
                                                           java.util.List<java.lang.String> unknownAreas,
                                                           RoomnumberSet unloadedRooms)

DBReadRoomExits

public void DBReadRoomExits(java.lang.String roomID,
                            Room room,
                            boolean reportStatus)

DBReadRoomExits

public void DBReadRoomExits(java.lang.String roomID,
                            java.util.Map<java.lang.String,Room> allRooms,
                            boolean reportStatus,
                            RoomnumberSet unloadedRooms)

DBReadAllRooms

public void DBReadAllRooms(RoomnumberSet set)

DBReadRoomDesc

public java.lang.String DBReadRoomDesc(java.lang.String roomID)

DBReadRoomMOBMiscText

public java.lang.String DBReadRoomMOBMiscText(java.lang.String roomID,
                                              java.lang.String mobID)

DBReadCatalogs

public void DBReadCatalogs()

DBReadSpace

public void DBReadSpace()

DBCountRoomMobsItems

public int[] DBCountRoomMobsItems(java.lang.String roomID)

DBReadContent

public void DBReadContent(java.lang.String thisRoomID,
                          Room thisRoom,
                          java.util.Map<java.lang.String,Room> rooms,
                          RoomnumberSet unloadedRooms,
                          boolean setStatus,
                          boolean makeLive)

getShortID

protected java.lang.String getShortID(Environmental E)

getDBCreateItemString

protected Pair<java.lang.String,java.lang.String> getDBCreateItemString(java.lang.String roomID,
                                                                        Item thisItem)

DBCreateThisItem

public void DBCreateThisItem(java.lang.String roomID,
                             Item thisItem)

DBUpdateTheseItems

public void DBUpdateTheseItems(Room room,
                               java.util.List<Item> items)

DBUpdateItems

public void DBUpdateItems(Room room)

DBUpdateExits

public void DBUpdateExits(Room room)

DBCreateThisMOB

public void DBCreateThisMOB(java.lang.String roomID,
                            MOB thisMOB)

getDBCreateMOBString

public Pair<java.lang.String,java.lang.String> getDBCreateMOBString(java.lang.String roomID,
                                                                    MOB thisMOB)

DBUpdateTheseMOBs

public void DBUpdateTheseMOBs(Room room,
                              java.util.List<MOB> mobs)

DBUpdateMOBs

public void DBUpdateMOBs(Room room)

DBUpdateAll

public void DBUpdateAll(Room room)

DBUpdateRoom

public void DBUpdateRoom(Room room)

DBReCreate

public void DBReCreate(Room room,
                       java.lang.String oldID)

DBCreate

public void DBCreate(Area A)

DBUpdate

public void DBUpdate(java.lang.String areaID,
                     Area A)

DBDeleteRoomItem

public void DBDeleteRoomItem(java.lang.String roomID,
                             Item item)

DBUpdateRoomItem

public void DBUpdateRoomItem(java.lang.String roomID,
                             Item item)

DBDeleteRoomMOB

public void DBDeleteRoomMOB(java.lang.String roomID,
                            MOB mob)

DBUpdateRoomMOB

public void DBUpdateRoomMOB(java.lang.String roomID,
                            MOB mob)

DBCreate

public void DBCreate(Room room)

getRoomDeleteStrings

protected java.util.List<java.lang.String> getRoomDeleteStrings(java.lang.String roomID)

DBDelete

public void DBDelete(Room room)

getAreaDeleteStrings

protected java.util.List<java.lang.String> getAreaDeleteStrings(java.lang.String areaName)

DBDelete

public void DBDelete(Area A)

DBDeleteAreaAndRooms

public void DBDeleteAreaAndRooms(Area A)