public class RoomLoader
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
protected static class |
RoomLoader.StuffClass |
Modifier and Type | Field | Description |
---|---|---|
protected DBConnector |
DB |
Constructor | Description |
---|---|
RoomLoader(DBConnector newDB) |
Modifier and Type | Method | Description |
---|---|---|
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) |
|
Item |
DBGetSavedRoomItemCopy(java.lang.String roomID,
java.lang.String itemName) |
|
java.lang.String |
DBIsAreaName(java.lang.String name) |
|
boolean |
DBIsSavedRoomItemCopy(java.lang.String roomID,
java.lang.String itemName) |
|
java.util.Set<java.lang.String> |
DBReadAffectedRoomIDs(Area parentA,
boolean metro,
java.lang.String[] propIDs,
java.lang.String[] propArgs) |
|
protected void |
DBReadAllAreas() |
|
void |
DBReadAllRooms(RoomnumberSet set) |
|
void |
DBReadArea(Area A) |
|
boolean |
DBReadAreaFull(java.lang.String areaName) |
|
DatabaseEngine.RoomContent[] |
DBReadAreaItems(java.lang.String name) |
|
DatabaseEngine.RoomContent[] |
DBReadAreaMobs(java.lang.String name) |
|
Area |
DBReadAreaObject(java.lang.String areaName) |
|
protected java.util.List<java.lang.String> |
DBReadAreaRoomIDs(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,
java.util.Set<DatabaseEngine.ReadRoomDisableFlag> disableFlags) |
|
java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> |
DBReadIncomingRoomExitIDsMap(java.lang.String roomID) |
|
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,
Room room,
boolean reportStatus) |
|
void |
DBReadRoomExits(java.lang.String roomID,
java.util.Map<java.lang.String,Room> allRooms,
boolean reportStatus,
RoomnumberSet unloadedRooms) |
|
Item |
DBReadRoomItem(java.lang.String roomID,
java.lang.String itemNum) |
|
MOB |
DBReadRoomMOB(java.lang.String roomID,
java.lang.String mobID) |
|
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> |
getRoomDeleteQueries(java.lang.String roomID) |
|
protected java.util.List<java.lang.String> |
getRoomDeleteStrings(java.lang.String roomID) |
|
protected Pair<java.lang.String,java.lang.String>[] |
getRoomExitIDs(java.lang.String roomID) |
|
protected java.lang.String |
getShortID(Environmental E) |
|
protected java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> |
readRoomExitIDsMap(java.lang.String roomID) |
protected DBConnector DB
public RoomLoader(DBConnector newDB)
protected DBConnector.DBPreparedBatchEntry doBulkInsert(java.lang.StringBuilder str, java.util.List<java.lang.String> clobs, java.lang.String sql, java.lang.String clob)
public java.lang.String DBIsAreaName(java.lang.String name)
public void DBReadArea(Area A)
public boolean DBReadAreaFull(java.lang.String areaName)
public Area DBReadAreaObject(java.lang.String areaName)
protected void DBReadAllAreas()
public RoomnumberSet DBReadAreaRoomList(java.lang.String areaName, boolean reportStatus)
public Room DBReadRoomData(java.lang.String singleRoomIDtoLoad, boolean reportStatus)
public Room[] DBReadRoomObjects(java.lang.String areaName, boolean reportStatus)
protected java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> readRoomExitIDsMap(java.lang.String roomID)
public java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> DBReadIncomingRoomExitIDsMap(java.lang.String roomID)
protected Pair<java.lang.String,java.lang.String>[] getRoomExitIDs(java.lang.String roomID)
public java.util.Set<java.lang.String> DBReadAffectedRoomIDs(Area parentA, boolean metro, java.lang.String[] propIDs, java.lang.String[] propArgs)
public boolean DBReReadRoomData(Room room)
public Room DBReadRoomObject(java.lang.String roomIDtoLoad, boolean reportStatus)
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)
public void DBReadRoomExits(java.lang.String roomID, Room room, boolean reportStatus)
public void DBReadRoomExits(java.lang.String roomID, java.util.Map<java.lang.String,Room> allRooms, boolean reportStatus, RoomnumberSet unloadedRooms)
public void DBReadAllRooms(RoomnumberSet set)
public java.lang.String DBReadRoomDesc(java.lang.String roomID)
public java.lang.String DBReadRoomMOBMiscText(java.lang.String roomID, java.lang.String mobID)
public MOB DBReadRoomMOB(java.lang.String roomID, java.lang.String mobID)
public Item DBReadRoomItem(java.lang.String roomID, java.lang.String itemNum)
public void DBReadCatalogs()
public void DBReadSpace()
public int[] DBCountRoomMobsItems(java.lang.String roomID)
public Item DBGetSavedRoomItemCopy(java.lang.String roomID, java.lang.String itemName)
public boolean DBIsSavedRoomItemCopy(java.lang.String roomID, java.lang.String itemName)
public void DBReadContent(java.lang.String thisRoomID, Room thisRoom, java.util.Map<java.lang.String,Room> rooms, RoomnumberSet unloadedRooms, java.util.Set<DatabaseEngine.ReadRoomDisableFlag> disableFlags)
protected java.util.List<java.lang.String> DBReadAreaRoomIDs(java.lang.String areaName)
public DatabaseEngine.RoomContent[] DBReadAreaMobs(java.lang.String name)
public DatabaseEngine.RoomContent[] DBReadAreaItems(java.lang.String name)
protected java.lang.String getShortID(Environmental E)
protected Pair<java.lang.String,java.lang.String> getDBCreateItemString(java.lang.String roomID, Item thisItem)
public void DBCreateThisItem(java.lang.String roomID, Item thisItem)
public void DBUpdateItems(Room room)
public void DBUpdateExits(Room room)
public void DBCreateThisMOB(java.lang.String roomID, MOB thisMOB)
public Pair<java.lang.String,java.lang.String> getDBCreateMOBString(java.lang.String roomID, MOB thisMOB)
public void DBUpdateMOBs(Room room)
public void DBUpdateAll(Room room)
public void DBUpdateRoom(Room room)
public void DBReCreate(Room room, java.lang.String oldID)
public void DBCreate(Area A)
public void DBUpdate(java.lang.String areaID, Area A)
public void DBDeleteRoomItem(java.lang.String roomID, Item item)
public void DBUpdateRoomItem(java.lang.String roomID, Item item)
public void DBDeleteRoomMOB(java.lang.String roomID, MOB mob)
public void DBUpdateRoomMOB(java.lang.String roomID, MOB mob)
public void DBCreate(Room room)
protected java.util.List<java.lang.String> getRoomDeleteStrings(java.lang.String roomID)
protected java.util.List<java.lang.String> getRoomDeleteQueries(java.lang.String roomID)
public void DBDelete(Room room)
protected java.util.List<java.lang.String> getAreaDeleteStrings(java.lang.String areaName)
public void DBDelete(Area A)
public void DBDeleteAreaAndRooms(Area A)