CMObject
, CMLibrary
, DatabaseEngine
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DBInterface extends java.lang.Object implements DatabaseEngine
DatabaseEngine.AckRecord, DatabaseEngine.AckStats, DatabaseEngine.DatabaseTables, DatabaseEngine.PlayerData, DatabaseEngine.PollData, DatabaseEngine.ReadRoomDisableFlag, DatabaseEngine.RoomContent
idConverter
Constructor | Description |
---|---|
DBInterface(DBConnector DB,
java.util.Set<java.lang.String> privacyV) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
activate() |
Activates the library.
|
void |
addBackLogEntry(java.lang.String channelName,
int subNameField,
long timeStamp,
java.lang.String entry) |
Table category: DBBACKLOG
Adds a CHANNEL message to the backlog table
|
void |
checkUpgradeBacklogTable(ChannelsLibrary channels) |
Table category: DBBACKLOG
This method checks if the backlog table requires any upgrades and, if so, does them.
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
int |
DBCountJournal(java.lang.String journalID,
java.lang.String from,
java.lang.String to) |
Table category: DBJOURNALS
Returns the number of messages found in the given journal optionally
sent from the given user name, and/or optionally to the given user
name.
|
int |
DBCountJournalMsgsNewerThan(java.lang.String journalID,
java.lang.String to,
long olderDate) |
Table category: DBJOURNALS
Counts all the messages optionally sent to the given user (or ALL) that
are newer than the given date.
|
int |
DBCountPlayerData(java.lang.String section) |
Table category: DBPLAYERDATA
Counts the number of rows of data/entries per section.
|
int |
DBCountPlayerData(java.lang.String playerID,
java.lang.String section) |
Table category: DBPLAYERDATA
Counts the number of rows of data/entries
|
int[] |
DBCountRoomMobsItems(java.lang.String roomID) |
Table category: DBMAP
Counts the number of mobs and items in the room
according to the database, and returns the counts
as a numeric array where the first element is the
number of mobs and the second the number of items.
|
void |
DBCreateAbility(java.lang.String classID,
java.lang.String typeClass,
java.lang.String data) |
Table category: DBABILITY
Creates a new entry in the generic ability (CMGAAC)
table with the given unique ID and xml definition
data.
|
void |
DBCreateAccount(PlayerAccount account) |
Table category: DBPLAYERS
Inserts a new row into the account record in the
database.
|
void |
DBCreateArea(Area A) |
Table category: DBMAP
Creates a new area record in the database.
|
void |
DBCreateCharacter(MOB mob) |
Table category: DBPLAYERS
Creates the character record for the given mob in
the CMCHAR table in the database, and updates
the account record if any.
|
void |
DBCreateClan(Clan C) |
Table category: DBCLANS
Creates the given clan in the database.
|
void |
DBCreateClass(java.lang.String classID,
java.lang.String data) |
Table category: DBCHARCLASS
Creates a new entry in the generic charclasses (CMCCAC)
table with the given unique ID and xml definition
data.
|
DatabaseEngine.PlayerData |
DBCreatePlayerData(java.lang.String player,
java.lang.String section,
java.lang.String key,
java.lang.String data) |
Table category: DBPLAYERDATA
Creates a single player data entry.
|
void |
DBCreatePoll(java.lang.String name,
java.lang.String player,
java.lang.String subject,
java.lang.String description,
java.lang.String optionXML,
int flag,
java.lang.String qualZapper,
java.lang.String results,
long expiration) |
Table category: DBPOLLS
Creates a new poll in the DBPOLLS table.
|
void |
DBCreateRace(java.lang.String raceID,
java.lang.String data) |
Table category: DBRACE
Creates a new entry in the generic races (CMGRAC)
table with the given unique ID and xml definition
data.
|
void |
DBCreateRoom(Room room) |
Table category: DBMAP
Creates the basic room object entry in the data.
|
boolean |
DBCreateStat(long startTime,
long endTime,
java.lang.String data) |
Table category: DBSTATS
Creates a days worth of stats in the CMSTAT table
in the database.
|
void |
DBCreateThisItem(java.lang.String roomID,
Item thisItem) |
Table category: DBMAP
Inserts the given item into the given room id
in the database, regardless of its worthiness to
be there.
|
void |
DBCreateThisMOB(java.lang.String roomID,
MOB thisMOB) |
Table category: DBMAP
Inserts the given mob into the given room id
in the database, regardless of its worthiness to
be there.
|
void |
DBCreateVFSFile(java.lang.String filename,
int bits,
java.lang.String creator,
long updateTime,
java.lang.Object data) |
Table category: DBVFS
Creates a new file in the DBFS filesystem stored in the CBVFS table.
|
void |
DBDeleteAbility(java.lang.String classID) |
Removes a generic ability from the CMGAAC table.
|
void |
DBDeleteAccount(PlayerAccount account) |
Table category: DBPLAYERS
Removes only the given account from the database.
|
void |
DBDeleteAllPlayerData(java.lang.String name) |
Table category: DBPLAYERDATA
Deletes all player data belonging to the player, of all
types and sections, all over.
|
void |
DBDeleteArea(Area A) |
Table category: DBMAP
Removes the given area record from the database.
|
void |
DBDeleteAreaAndRooms(Area A) |
Table category: DBMAP
Removes the given area record from the database.
|
void |
DBDeleteClan(Clan C) |
Table category: DBCLANS
Removes the given clan, all of its items and records,
membership, and everything about it from the database.
|
void |
DBDeleteClass(java.lang.String classID) |
Table category: DBCHARCLASS
Removes a generic charclass from the CMCCAC table.
|
void |
DBDeleteItem(java.lang.String roomID,
Item item) |
Table category: DBMAP
Removes the given item, and only the given item, from the database
records for the given room id.
|
void |
DBDeleteJournal(java.lang.String journalID,
java.lang.String msgKeyOrNull) |
Table category: DBJOURNALS
Deletes enter a specific message, or all messages, from the given
journal.
|
void |
DBDeleteJournalMessagesByFrom(java.lang.String journal,
java.lang.String from) |
Deletes all messages in the given journal from the given source.
|
void |
DBDeleteMOB(java.lang.String roomID,
MOB mob) |
Table category: DBMAP
Removes the given mob, and only the given mob, from the database
records for the given room id.
|
void |
DBDeletePlayerData(java.lang.String playerID,
java.lang.String section) |
Table category: DBPLAYERDATA
Deletes all of the data for the given player of the
given section/type.
|
void |
DBDeletePlayerData(java.lang.String playerID,
java.lang.String section,
java.lang.String key) |
Table category: DBPLAYERDATA
Deletes what is probably a single player data entry, but could be more.
|
void |
DBDeletePlayerOnly(java.lang.String mobName) |
Table category: DBPLAYERS
Removes the character and clan affiliation records
from the database and nothing else.
|
void |
DBDeletePlayerPrivateJournalEntries(java.lang.String name) |
Table category: DBJOURNALS
This message deletes all private messages with the given
user id as a recipient.
|
void |
DBDeletePlayerSectionData(java.lang.String section) |
Table category: DBPLAYERDATA
Deletes all player data of the given section/type.
|
void |
DBDeletePoll(java.lang.String name) |
Table category: DBPOLLS
Deletes a poll, and all its options and results, forever.
|
void |
DBDeleteRace(java.lang.String raceID) |
Table category: DBRACE
Removes a generic race from the CMGRAC table.
|
void |
DBDeleteRoom(Room room) |
Table category: DBMAP
Deletes the room and all of its exits and contents
from the database entirely.
|
void |
DBDeleteStat(long startTime) |
Table category: DBSTATS
Deletes a days worth of stats from the CMSTAT table
in the database.
|
void |
DBDeleteVFSFile(java.lang.String filename) |
Table category: DBVFS
Deletes a file from the DBFS in the DBVFS table.
|
void |
DBDeleteVFSFileLike(java.lang.String partialFilename,
int minMask) |
Table category: DBVFS
Deletes file(s) from the DBFS in the DBVFS table.
|
boolean |
DBExistsPlayerData(java.lang.String section,
java.lang.String name) |
Table category: DBPLAYERDATA
Check all unique player names for all players for the given
name/section.
|
java.util.List<java.lang.String> |
DBExpiredCharNameSearch(java.util.Set<java.lang.String> skipNames) |
Table category: DBPLAYERS
If this system uses the character expiration system, then
this method will scan all the players for expired characters,
and return the list of names, or an empty list if there are
none.
|
Pair<java.lang.String,java.lang.Boolean> |
DBFetchEmailData(java.lang.String name) |
Table category: DBPLAYERS
Returns the email address and autoforward flag for the
player with the given name.
|
Clan.MemberRecord |
DBGetClanMember(java.lang.String clan,
java.lang.String name) |
Table category: DBCLANS
Reads information about a single clan member of the given exact
name from the clan of the given exact name.
|
java.lang.String |
DBGetRealJournalName(java.lang.String possibleName) |
Table category: DBJOURNALS
A silly function that queries the database for a journal of the given exact
name, and if it is found, it returns it, otherwise it returns null.
|
Item |
DBGetSavedRoomItemCopy(java.lang.String roomID,
java.lang.String itemName) |
Table category: DBMAP
Return the first instance of an item with the given name in the db for
the given room.
|
java.lang.String |
DBIsAreaName(java.lang.String name) |
Table category: DBMAP
Checks for the database for an area with approximately the
given name, returning the correct name if found, false
otherwise.
|
boolean |
DBIsSavedRoomItemCopy(java.lang.String roomID,
java.lang.String itemName) |
Table category: DBMAP
Check if an item with the given name is saved in this room.
|
long[] |
DBJournalLatestDateNewerThan(java.lang.String journalID,
java.lang.String to,
long olderTime) |
Table category: DBJOURNALS
This method returns a two dimensional array, where the first long
is the update timestamp of the latest message in the journal, optionally
to the given recipient, and the second long is the number of messages
found that are newer than the given timestamp.
|
java.lang.String |
DBLeigeSearch(java.lang.String Login) |
Table category: DBPLAYERS
Returns the leige for the given player
|
java.util.List<PlayerAccount> |
DBListAccounts(java.lang.String mask) |
Table category: DBPLAYERS
Populates and returns a list of player account
objects that match the given lowercase substring.
|
PlayerStats |
DBLoadPlayerStats(java.lang.String name) |
Table category: DBPLAYERS
Loads the player stats object for the given mob.
|
java.lang.String |
DBPlayerEmailSearch(java.lang.String email) |
Table category: DBPLAYERS
Returns the name of the player with the given email
address.
|
void |
DBPlayerNameChange(java.lang.String oldName,
java.lang.String newName) |
Table category: DBPLAYERS
Renames all player records belonging to the old
name to the new name.
|
int |
DBRawExecute(java.lang.String sql) |
Executes an arbitrary SQL statement against your
main database and returns the response number/code.
|
java.util.List<java.lang.String[]> |
DBRawQuery(java.lang.String sql) |
Executes an arbitrary SQL query against your
main database and returns the results as a list of
string arrays, where each array is a row, and each
column is a column from the query.
|
java.util.List<DatabaseEngine.AckRecord> |
DBReadAbilities() |
Table category: DBABILITY
Reads all records from the CMGAAC table and returns the
AckRecord for all of them in a list, to do with as you please.
|
PlayerAccount |
DBReadAccount(java.lang.String Login) |
Table category: DBPLAYERS
Loads an account with the given name from the
database, populates a playeraccount object,
and returns it.
|
java.util.Set<java.lang.String> |
DBReadAffectedRoomIDs(Area parentA,
boolean metro,
java.lang.String[] propIDs,
java.lang.String[] propArgs) |
Table category: DBMAP
Reads all the room ids that are affected by the given array of
Ability IDs as properties/affects.
|
java.util.List<Clan> |
DBReadAllClans() |
Table category: DBCLANS
Reads the entire list of clans, not including their stored items.
|
java.util.List<JournalEntry> |
DBReadAllJournalMsgsByExpiDateStr(java.lang.String journalID,
long startRange,
java.lang.String searchStr) |
Table category: DBJOURNALS
Returns all messages from the given journal, in which the expiration time
is after the given range, and the date string contains the given search term.
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadAllPlayerData(java.lang.String playerID) |
Table category: DBPLAYERDATA
Just as it says, this method reads all player data, which is
the only way to get all bank data at the same time, for example.
|
void |
DBReadAllRooms(RoomnumberSet roomsToRead) |
Table category: DBMAP
This method does a conventional boot load of all rooms and areas
in the given set, including exits and content.
|
void |
DBReadAreaData(Area A) |
Table category: DBMAP
Reloads the basic data of the given area, with a prefilled Name.
|
boolean |
DBReadAreaFull(java.lang.String areaName) |
Table category: DBMAP
Reloads the given area by exact Name.
|
DatabaseEngine.RoomContent[] |
DBReadAreaItems(java.lang.String name) |
Returns a thin record of all items in an area
proper
|
DatabaseEngine.RoomContent[] |
DBReadAreaMobs(java.lang.String name) |
Returns a thin record of all mobs in an area
proper
|
Area |
DBReadAreaObject(java.lang.String areaName) |
Table category: DBMAP
Reloads the basic data of the given area by exact Name.
|
RoomnumberSet |
DBReadAreaRoomList(java.lang.String areaName,
boolean reportStatus) |
Table category: DBMAP
Reads all the room numbers for the area with the given name from the
database and returns a compressed roomnumberset object.
|
void |
DBReadArtifacts() |
Table category: DBPLAYERDATA
Initializes the artifact ability tickers by reading them
from the CMPDAT table, creating a Prop_Artifact ability,
and setting it to start ticking.
|
void |
DBReadCatalogs() |
Table category: DBMAP
Loads both the mob and item catalogs into the catalog library.
|
int |
DBReadClanItems(java.util.Map<java.lang.String,Clan> clans) |
Table category: DBCLANS
Reads the entire list of clan items, and uses the map
to get the clan object, and then adds the given item
to both the clan object and to the World.
|
java.util.List<Clan.MemberRecord> |
DBReadClanMembers(java.lang.String clan) |
Table category: DBCLANS
Given an exact clan name, this method returns the
entire membership as MemberRecords.
|
java.util.List<DatabaseEngine.AckRecord> |
DBReadClasses() |
Table category: DBCHARCLASS
Reads all records from the CMCCAC table and returns the
AckRecord for all of them in a list, to do with as you please.
|
void |
DBReadContent(java.lang.String roomID,
Room thisRoom,
boolean makeLive) |
Table category: DBMAP
This method is used to load the content (items and mobs) of the
given room id into the given room object, and optionally activate
the contents to live use.
|
void |
DBReadFollowers(MOB mob,
boolean bringToLife) |
Table category: DBPLAYERS
Loads the followers of the given mob and optionally
brings them to life.
|
java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> |
DBReadIncomingRoomExitIDsMap(java.lang.String roomID) |
Table category: DBMAP
Reads all the room ids and exits that link to the given room id
|
void |
DBReadItemContent(java.lang.String roomID,
Room thisRoom) |
Table category: DBMAP
This method is used to load the content (items only) of the
given room id into the given room object, without activating
the contents to live use.
|
JournalEntry |
DBReadJournalEntry(java.lang.String journalID,
java.lang.String messageKey) |
Table category: DBJOURNALS
Reads an individual message from the given journal by its
message key.
|
void |
DBReadJournalMetaData(java.lang.String journalID,
JournalsLibrary.JournalMetaData metaData) |
Table category: DBJOURNALS
Takes an empty JournalMetaData object, and the journal NAME
and fills in the rest by querying the database.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByCreateDate(java.lang.String journalID,
boolean ascending) |
Table category: DBJOURNALS
Returns all the messages in the given journal, optionally sorted by create date, ascending.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByCreateDate(java.lang.String journalID,
boolean ascending,
int limit) |
Table category: DBJOURNALS
Returns a limited number of messages from the given journal, optional sorted by create date,
ascending.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByCreateDate(java.lang.String journalID,
boolean ascending,
int limit,
java.lang.String[] tos) |
Table category: DBJOURNALS
Returns a limited number of messages from the given journal, optionally sorted by create date,
ascending, but only those marked as TO the given string array.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByExpiRange(java.lang.String journalID,
java.lang.String from,
long startRange,
long endRange,
java.lang.String searchStr) |
Table category: DBJOURNALS
Returns all messages from the given journal, in which the expiration time
lies within the given ranges.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByTimeStamps(java.lang.String journalID,
java.lang.String from,
long startRange,
long endRange) |
Table category: DBJOURNALS
Returns all messages from the given journal, in which either the update time
starts within the given ranges or the expiration time ends within it.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByUpdateDate(java.lang.String journalID,
boolean ascending) |
Table category: DBJOURNALS
Returns all the messages in the given journal, optionally sorted by update date, ascending.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByUpdateDate(java.lang.String journalID,
boolean ascending,
int limit) |
Table category: DBJOURNALS
Returns a limited number of messages from the given journal, optional sorted by update date,
ascending.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByUpdateDate(java.lang.String journalID,
boolean ascending,
int limit,
java.lang.String[] tos) |
Table category: DBJOURNALS
Returns a limited number of messages from the given journal, optionally sorted by update date,
ascending, but only those marked as TO the given string array.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsByUpdateRange(java.lang.String journalID,
java.lang.String from,
long startRange,
long endRange) |
Table category: DBJOURNALS
Returns all messages from the given journal, in which the update time
lies within the given ranges.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsExpiredBefore(java.lang.String journalID,
java.lang.String to,
long newestDate) |
Table category: DBJOURNALS
Returns all the messages optionally sent to the given user (or ALL) that
are expired before the given date.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsNewerThan(java.lang.String journalID,
java.lang.String to,
long olderDate) |
Table category: DBJOURNALS
Returns all the messages optionally sent to the given user (or ALL) that
are newer than the given date.
|
java.util.List<JournalEntry> |
DBReadJournalMsgsOlderThan(java.lang.String journalID,
java.lang.String to,
long newestDate) |
Table category: DBJOURNALS
Returns all the messages optionally sent to the given user (or ALL) that
are older than the given date.
|
java.util.List<JournalEntry> |
DBReadJournalPageMsgs(java.lang.String journalID,
java.lang.String parent,
java.lang.String searchStr,
long newerDate,
int limit) |
Table category: DBJOURNALS
Returns a window of messages from the given journal, either primary messages or replies
to messages, sorted by date, that matches a search, and can be limited, and older (or newer)
than a given timestamp.
|
java.util.List<java.lang.Long> |
DBReadJournalPages(java.lang.String journalID,
java.lang.String parent,
java.lang.String searchStr,
int limit) |
Table category: DBJOURNALS
Returns the timestamp of the message at the top of every page, given the limit.
|
java.util.List<java.lang.String> |
DBReadJournals() |
Table category: DBJOURNALS
Returns the list of every journalID in the database that
has at least one message, or an intro.
|
void |
DBReadMobContent(java.lang.String roomID,
Room thisRoom) |
Table category: DBMAP
This method is used to load the content (mobs only) of the
given room id into the given room object, without activating
the contents to live use.
|
MOB |
DBReadPlayer(java.lang.String name) |
Table category: DBPLAYERS
Reads and populates a player MOB object
from the database.
|
int |
DBReadPlayerBitmap(java.lang.String name) |
Table category: DBPLAYERS
Returns only the attributes bitmap for the given
player name
|
PairList<java.lang.String,java.lang.Integer> |
DBReadPlayerClans(java.lang.String name) |
Table category: DBPLAYERS
Returns only list of clan names and roles this player belongs to
player name
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerData(java.lang.String playerID,
java.lang.String section) |
Table category: DBPLAYERDATA
Read a specific set of data for the given player, belonging
to the given section
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerData(java.lang.String playerID,
java.lang.String section,
java.lang.String key) |
Table category: DBPLAYERDATA
Reads what is probably a single player data entry, but could be more.
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerData(java.lang.String player,
java.util.List<java.lang.String> sections) |
Table category: DBPLAYERDATA
Reads in all data for the given player which also belongs to any
one of the given sections/data types.
|
java.util.List<java.lang.String> |
DBReadPlayerDataAuthorsBySection(java.lang.String section) |
Table category: DBPLAYERDATA
Returns the list of unique authors for a given section
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerDataByKeyMask(java.lang.String section,
java.lang.String keyMask) |
Table category: DBPLAYERDATA
Reads a list of data entries in a given section and selecting
keys by a regular expression.
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerDataEntry(java.lang.String key) |
Table category: DBPLAYERDATA
Reads what is probably a single player data entry, but could be more?
|
java.util.List<java.lang.String> |
DBReadPlayerDataKeys(java.lang.String playerID,
java.lang.String section) |
Table category: DBPLAYERDATA
Read a specific set of keys for the given player, belonging
to the given section
|
java.util.List<java.lang.String> |
DBReadPlayerDataPlayersBySection(java.lang.String section) |
Table category: DBPLAYERDATA
Reads in all unique player names for all players for the given
data type/section.
|
java.util.List<java.lang.String[]> |
DBReadPlayerItemData(java.lang.String name,
Filterer<Pair<java.lang.String,java.lang.String>> classLocFilter,
Filterer<java.lang.String> textFilter) |
Table category: DBPLAYERS
Reads the item dbid, class and misc text of each item in the given
players inventory, along with all 9 fields a growing item needs.
|
java.util.List<DatabaseEngine.PlayerData> |
DBReadPlayerSectionData(java.lang.String section) |
Table category: DBPLAYERDATA
Reads in all player data for all players for the given
data type/section.
|
java.lang.Object |
DBReadPlayerValue(java.lang.String name,
PlayerLibrary.PlayerCode code) |
Table category: DBPLAYERS
Returns a specific piece of player data from the database.
|
DatabaseEngine.PollData |
DBReadPoll(java.lang.String name) |
Table category: DBPOLLS
Reads the raw data for a specific poll of a given name.
|
java.util.List<DatabaseEngine.PollData> |
DBReadPollList() |
Table category: DBPOLLS
Reads the raw data for all the polls from DBPOLLs table.
|
java.util.List<Quest> |
DBReadQuests() |
Table category: DBQUEST
Reads all the Quest objects from the database and
returns them as a list.
|
java.util.List<DatabaseEngine.AckRecord> |
DBReadRaces() |
Table category: DBRACE
Reads all records from the CMGRAC table and returns the
AckRecord for all of them in a list, to do with as you please.
|
Room |
DBReadRoom(java.lang.String roomID,
boolean reportStatus) |
Table category: DBMAP
Permanently Loads and returns a single Room object,
without populating its contents yet.
|
java.lang.String |
DBReadRoomDesc(java.lang.String roomID) |
Table category: DBMAP
Reads the room description of the given room id and
returns it.
|
Pair<java.lang.String,java.lang.String>[] |
DBReadRoomExitIDs(java.lang.String roomID) |
Table category: DBMAP
Reads the exits of the room with the given room id
and populates them into the pair array, indexed by
direction.
|
void |
DBReadRoomExits(java.lang.String roomID,
Room room,
boolean reportStatus) |
Table category: DBMAP
Reads the exits of the room with the given room id
and populates them into the given room object.
|
Item |
DBReadRoomItem(java.lang.String roomID,
java.lang.String itemNum) |
Table category: DBMAP
Returns a sterile prototype of the given room item
freshly created.
|
MOB |
DBReadRoomMOB(java.lang.String roomID,
java.lang.String mobID) |
Table category: DBMAP
Returns a sterile prototype of the given room mob
freshly created.
|
java.lang.String |
DBReadRoomMOBMiscText(java.lang.String roomID,
java.lang.String mobID) |
Table category: DBMAP
Given a specific room id, and a specific mob id for
that room (this is a unique coded string found only
in the db, and loaded as the database id), this method
returns the misctext for the mob.
|
Room |
DBReadRoomObject(java.lang.String roomIDtoLoad,
boolean reportStatus) |
Table category: DBMAP
Read the Room object of the given roomID and returns
the object.
|
Room[] |
DBReadRoomObjects(java.lang.String areaName,
boolean reportStatus) |
Table category: DBMAP
Reads all the Room objects in the given area name
and returns them as an array of rooms.
|
void |
DBReadSpace() |
Table category: DBMAP
Logs all the items in outer space into the space map
|
CoffeeTableRow |
DBReadStat(long startTime) |
Table category: DBSTATS
Reads a days worth of stats from the CMSTAT table in
the database.
|
java.util.List<CoffeeTableRow> |
DBReadStats(long startTime,
long endTime) |
Table category: DBSTATS
Read all or a group of statistic rows within a time range.
|
java.util.Set<java.lang.String> |
DBReadUniqueSections(java.lang.String name) |
Table category: DBPLAYERDATA
Reads in all unique sections with the given owner/name
|
CMFile.CMVFSDir |
DBReadVFSDirectory() |
Table category: DBVFS
Reads the root of the VFS (DBFS) database filesystem.
|
CMFile.CMVFSFile |
DBReadVFSFile(java.lang.String filename) |
Table category: DBVFS
Reads the complete DBFS file record for the given filepath.
|
java.util.List<java.lang.String> |
DBReadVFSKeysLike(java.lang.String partialFilename,
int minMask) |
Table category: DBVFS
Reads the vfs record keys for the given files.
|
void |
DBReCreate(Room room,
java.lang.String oldID) |
Table category: DBMAP
Changes the room ID of the given room in the database
by updating all of the records with the old room id
to instead use the new room id of the room given.
|
DatabaseEngine.PlayerData |
DBReCreatePlayerData(java.lang.String name,
java.lang.String section,
java.lang.String key,
java.lang.String xml) |
Table category: DBPLAYERDATA
Creates or Updates a single player data entry.
|
boolean |
DBReReadRoomData(Room room) |
Table category: DBMAP
Reloads the title, description, affects, and other internal
fields of the given room.
|
java.util.List<MOB> |
DBScanFollowers(java.lang.String mobName) |
Table category: DBPLAYERS
Queries and creates mob objects for all the followers of
the player with the given name and returns the list.
|
java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] |
DBScanPrideAccountWinners(int topThisMany,
short scanCPUPercent) |
Table category: DBPLAYERS
Re-builds the entire top-10 account tables from the
database.
|
java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] |
DBScanPridePlayerWinners(int topThisMany,
short scanCPUPercent) |
Table category: DBPLAYERS
Re-builds the entire top-10 player tables from the
database.
|
java.util.List<JournalEntry> |
DBSearchAllJournalEntries(java.lang.String journalID,
java.lang.String searchStr) |
Table category: DBJOURNALS
Searches all the messages in the journal for the search string as
a (typically) case-insensitive substring of either the subject
or the message text.
|
PairList<java.lang.String,java.lang.Long> |
DBSearchPFIL(java.lang.String match) |
Table category: DBPLAYERS
Searches all player PFIL records for the given match.
|
void |
DBSetPlayerValue(java.lang.String name,
PlayerLibrary.PlayerCode code,
java.lang.Object value) |
Table category: DBPLAYERS
Sets a specific piece of player data in the database.
|
void |
DBTouchJournalMessage(java.lang.String key) |
Table category: DBJOURNALS
Updates the given journal message with an update time of
the current date/timestamp.
|
void |
DBTouchJournalMessage(java.lang.String key,
long newDate) |
Table category: DBJOURNALS
Updates the given journal message with a specific update
time of the given date/timestamp
|
void |
DBUpdateAccount(PlayerAccount account) |
Table category: DBPLAYERS
Updates an existing account record in the database
by altering its key fields in the existing record.
|
void |
DBUpdateArea(java.lang.String areaID,
Area A) |
Table category: DBMAP
Updates the area record in the database with the
given areaID with the data from the given area
object.
|
void |
DBUpdateClan(Clan C) |
Table category: DBCLANS
Updates the given clan objects record in the database.
|
void |
DBUpdateClanDonates(java.lang.String clan,
java.lang.String name,
double adjGold,
int adjXP,
double adjDues) |
Table category: DBCLANS
Updates the clan-donation counts for the clan member of the given
exact name for the given exact clan
|
void |
DBUpdateClanItems(Clan C) |
Table category: DBCLANS
Updates the external clan items in the database
for the given clan by deleting all the records
and re-inserting them.
|
void |
DBUpdateClanKills(java.lang.String clan,
java.lang.String name,
int adjMobKills,
int adjPlayerKills) |
Table category: DBCLANS
Updates the clan-kill counts for the clan member of the given
exact name for the given exact clan
|
void |
DBUpdateClanMembership(java.lang.String name,
java.lang.String clan,
int role) |
Table category: DBCLANS
Updates the Role of the clan member of the given exact name
for the given exact clan.
|
void |
DBUpdateEmail(MOB mob) |
Table category: DBPLAYERS
Updates the email address of the given player in the
database.
|
void |
DBUpdateExits(Room room) |
Table category: DBMAP
Resaves the given rooms exit objects, and
linkages to other rooms.
|
void |
DBUpdateFollowers(MOB mob) |
Table category: DBPLAYERS
This method deletes and re-saves the non-player
npc followers of the given player mob.
|
void |
DBUpdateItem(java.lang.String roomID,
Item item) |
Table category: DBMAP
Assuming the given item is savable, this method will update the
database record for the given item in the given room by deleting
the item from the room's database record and re-creating it in it.
|
void |
DBUpdateItems(Room room) |
Table category: DBMAP
Updates all of the savable items in the given room by
removing all item records from the database and re-inserting
all of the current item records back in.
|
void |
DBUpdateJournal(java.lang.String journalID,
JournalEntry entry) |
Table category: DBJOURNALS
Updates the entire database record for the given journal
entry, which must have already been created.
|
void |
DBUpdateJournal(java.lang.String key,
java.lang.String subject,
java.lang.String msg,
long newAttributes) |
Table category: DBJOURNALS
Updates the existing journal message record in the database.
|
void |
DBUpdateJournalMessageViews(java.lang.String key,
int views) |
Table category: DBJOURNALS
Sets the number of views for the given specific journal message.
|
void |
DBUpdateJournalMetaData(java.lang.String journalID,
JournalsLibrary.JournalMetaData metaData) |
Table category: DBJOURNALS
Primarily for forum journals, this method updates all of the given
meta data, such as the intro, and so forth by deleting the old
record and re-inserting it into the database.
|
void |
DBUpdateMessageReplies(java.lang.String key,
int numReplies) |
Table category: DBJOURNALS
For forum journals, updates the number of replies registered with the
parent message represented by the given message Key.
|
void |
DBUpdateMOB(java.lang.String roomID,
MOB mob) |
Table category: DBMAP
Assuming the given mob is savable, this method will update the
database record for the given mob in the given room by deleting
the mob from the room's database record and re-creating him in it.
|
void |
DBUpdateMOBs(Room room) |
Table category: DBMAP
Deletes all mobs from the given room from the database and then
adds all mobs currently in the room which are savable back to
the database.
|
void |
DBUpdatePassword(java.lang.String name,
java.lang.String password) |
Table category: DBPLAYERS
Updates the password of the given player in the
database.
|
void |
DBUpdatePlayer(MOB mob) |
Table category: DBPLAYERS
Does a complete update of the given player mob,
including their items, abilities, and account.
|
void |
DBUpdatePlayerAbilities(MOB mob) |
Table category: DBPLAYERS
Updates only the ability records in the database
for the given player.
|
void |
DBUpdatePlayerData(java.lang.String name,
java.lang.String section,
java.lang.String key,
java.lang.String xml) |
Table category: DBPLAYERDATA
Updates what is probably a single player data entry, but could be more,
by setting the xml data itself for a given key.
|
void |
DBUpdatePlayerItems(MOB mob) |
Table category: DBPLAYERS
Updates only the item/inventory/equipment records
in the database for the given player.
|
void |
DBUpdatePlayerMOBOnly(MOB mob) |
Table category: DBPLAYERS
Updates only the base mob data in the database for
the given player.
|
void |
DBUpdatePlayerPlayerStats(MOB mob) |
Table category: DBPLAYERS
Updates only the player stats record for the given player.
|
void |
DBUpdatePlayerStartRooms(java.lang.String oldID,
java.lang.String newID) |
Changes all player start from from the old to new room id, where
applicable.
|
void |
DBUpdatePoll(java.lang.String oldName,
java.lang.String name,
java.lang.String player,
java.lang.String subject,
java.lang.String description,
java.lang.String optionXML,
int flag,
java.lang.String qualZapper,
java.lang.String results,
long expiration) |
Table category: DBPOLLS
Updates and/or renames a poll in the DBPOLLS table.
|
void |
DBUpdatePollResults(java.lang.String name,
java.lang.String results) |
Table category: DBPOLLS
Updates the results xml array for an existing poll.
|
void |
DBUpdateQuest(Quest Q) |
Table category: DBQUEST
Updates the given quest in the database by deleting
the old one and re-inserting this one.
|
void |
DBUpdateQuests(java.util.List<Quest> quests) |
Table category: DBQUEST
Updates the entire complete quest list by deleting all quests
from the database and re-inserting the given list of quests.
|
void |
DBUpdateRaceCreationDate(java.lang.String raceID) |
Table category: DBRACE
Updates the race creation timestamp, to prevent its re-creation.
|
void |
DBUpdateRoom(Room room) |
Table category: DBMAP
Updates only the room object for the given room, not the
items or content -- just the title, description, behaviors
and properties, that sort of thing.
|
boolean |
DBUpdateStat(long startTime,
java.lang.String data) |
Table category: DBSTATS
Updates a single days worth of stats in the CMSTAT table
in the database.
|
void |
DBUpdateTheseItems(Room room,
java.util.List<Item> items) |
Table category: DBMAP
Deletes all items from the given room from the database and then
adds the given items to the database.
|
void |
DBUpdateTheseMOBs(Room room,
java.util.List<MOB> mobs) |
Table category: DBMAP
Deletes all mobs from the given room from the database and then
adds the given mobs to the database.
|
void |
DBUpSertVFSFile(java.lang.String filename,
int bits,
java.lang.String creator,
long updateTime,
java.lang.Object data) |
Table category: DBVFS
Creates or updates a file in the DBFS filesystem stored in the CBVFS table.
|
PlayerLibrary.ThinnerPlayer |
DBUserSearch(java.lang.String Login) |
Table category: DBPLAYERS
Attempts to return an extremely thin player record by
searching the database for a character with the exact given
name.
|
java.lang.String |
DBWrite(java.lang.String journalID,
JournalEntry entry) |
|
java.lang.String |
DBWriteJournal(java.lang.String journalID,
JournalEntry entry) |
Table category: DBJOURNALS
Creates a new entry in the journal.
|
java.lang.String |
DBWriteJournal(java.lang.String journalID,
java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message) |
Table category: DBJOURNALS
Creates a new entry in this journal.
|
java.lang.String |
DBWriteJournalChild(java.lang.String journalID,
java.lang.String journalSource,
java.lang.String from,
java.lang.String to,
java.lang.String parentKey,
java.lang.String subject,
java.lang.String message) |
Table category: DBJOURNALS
Writes a new journal message/entry to the database.
|
java.lang.String |
DBWriteJournalEmail(java.lang.String mailBoxID,
java.lang.String journalSource,
java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message) |
Table category: DBJOURNALS
Writes a new journal entry formatted for the email system and generates
a new message key.
|
JournalEntry |
DBWriteJournalReply(java.lang.String journalID,
java.lang.String key,
java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message) |
Table category: DBJOURNALS
Adds to an existing journal entry by taking on a fake/stupid reply as a text
appendage to the main message.
|
void |
delBackLogEntry(java.lang.String channelName,
long timeStamp) |
Table category: DBBACKLOG
Removes a CHANNEL message from the backlog table
|
java.lang.String |
errorStatus() |
Returns the database status, formatted for html.
|
java.util.List<Triad<java.lang.String,java.lang.Integer,java.lang.Long>> |
getBackLogEntries(java.lang.String channelName,
int subNameField,
int newestToSkip,
int numToReturn) |
Table category: DBBACKLOG
Returns a list of channel messages for the given channel and criteria.
|
int |
getBackLogPageEnd(java.lang.String channelName,
int subNameField) |
Table category: DBBACKLOG
Returns the highest page index for the given channel in the backlog table
|
DBConnector |
getConnector() |
Returns the connector object to the database, allowing
SQL statements to be run.
|
java.util.List<PlayerLibrary.ThinPlayer> |
getExtendedUserList() |
Table category: DBPLAYERS
Returns the list of all characters as thinplayer
objects.
|
int |
getLowestBackLogIndex(java.lang.String channelName,
int subNameField,
long afterDate) |
Table category: DBBACKLOG
Returns the lowest backlog index number of messages after the given timestamp
|
TickClient |
getServiceClient() |
If this library has a service thread, this method returns the TickClient
object associated with that service.
|
PlayerLibrary.ThinPlayer |
getThinUser(java.lang.String name) |
Table category: DBPLAYERS
Returns a ThinPlayer object with information about the
character with the given name.
|
java.util.List<java.lang.String> |
getUserList() |
Table category: DBPLAYERS
Returns a list of all the characters in the database.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isConnected() |
Returns whether the database is connected.
|
boolean |
isRaceExpired(java.lang.String raceID) |
Table category: DBRACE
Returns whether the given race ID has expired and should
be recreated at the next opportunity.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
int |
pingAllConnections() |
"Pings" all connections to the database by issueing
a "SELECT 1 FROM CMCHAR".
|
int |
pingAllConnections(long overrideTimeoutIntervalMillis) |
"Pings" all connections to the database by issueing
a "SELECT 1 FROM CMCHAR", if the connection has
not seen any action in the given number of milliseconds.
|
void |
propertiesLoaded() |
This method is called whenever system properties are altered by the user.
|
int |
pruneOldRaces() |
Table category: DBRACE
Registers a generic race as being used recently
|
void |
registerRaceUsed(Race R) |
Table category: DBRACE
Registers a generic race as being used recently
|
void |
resetConnections() |
Forces all existing database connections to be closed,
and then re-open.
|
java.util.List<Triad<java.lang.String,java.lang.Integer,java.lang.Long>> |
searchBackLogEntries(java.lang.String channelName,
int subNameField,
java.lang.String search,
int numToReturn) |
Table category: DBBACKLOG
Returns matching channel messages for the given channel and criteria.
|
boolean |
shutdown() |
Shuts down the library.
|
void |
trimBackLogEntries(java.lang.String[] channels,
int maxMessages,
long oldestTime) |
Table category: DBBACKLOG
This is a periodic maintenance method which will go through the
list of unique channel names, and trim them according to the maximum
number of messages to retain (absolute), and the oldest message
to return (absolute timestamp -- no 0 nonsense).
|
int |
updateAllRaceDates() |
Table category: DBRACE
Updates all generic races used recently.
|
java.util.List<PlayerLibrary.ThinPlayer> |
vassals(java.lang.String liegeID) |
Table category: DBPLAYERS
Attempts to return a list of all characters who are
listed as vassals of the character with the given exact
name.
|
java.util.List<PlayerLibrary.ThinPlayer> |
worshippers(java.lang.String deityID) |
Table category: DBPLAYERS
Attempts to return a list of all characters who are
listed as worshippers of the deity with the given exact
name.
|
public DBInterface(DBConnector DB, java.util.Set<java.lang.String> privacyV)
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public CMObject copyOf()
CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public java.lang.String L(java.lang.String str, java.lang.String... xs)
CMLibrary
L
in interface CMLibrary
str
- the string to translatexs
- the array of variables to replaceCall with the string to translate, which may contain variables of the form @x1, @x2, etc. The array in xs
is then used to replace the variables AFTER the string is translated.
public DBConnector getConnector()
DatabaseEngine
getConnector
in interface DatabaseEngine
public boolean activate()
CMLibrary
activate
in interface CMLibrary
CMLibrary.shutdown()
public boolean shutdown()
CMLibrary
shutdown
in interface CMLibrary
CMLibrary.activate()
public void propertiesLoaded()
CMLibrary
propertiesLoaded
in interface CMLibrary
public TickClient getServiceClient()
CMLibrary
getServiceClient
in interface CMLibrary
TickClient
public java.util.List<PlayerLibrary.ThinPlayer> vassals(java.lang.String liegeID)
DatabaseEngine
vassals
in interface DatabaseEngine
liegeID
- the character name who would be the liegepublic java.util.List<PlayerLibrary.ThinPlayer> worshippers(java.lang.String deityID)
DatabaseEngine
worshippers
in interface DatabaseEngine
deityID
- the exact name of the deity to look forpublic java.util.List<java.lang.String> getUserList()
DatabaseEngine
getUserList
in interface DatabaseEngine
public boolean isConnected()
DatabaseEngine
isConnected
in interface DatabaseEngine
public java.util.List<Clan> DBReadAllClans()
DatabaseEngine
DBReadAllClans
in interface DatabaseEngine
Clan
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBUpdateClan(Clan)
,
DatabaseEngine.DBUpdateClanItems(Clan)
,
DatabaseEngine.DBDeleteClan(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBCreateClan(Clan)
public int DBReadClanItems(java.util.Map<java.lang.String,Clan> clans)
DatabaseEngine
DBReadClanItems
in interface DatabaseEngine
clans
- the map of clanids to clan objectsClan
,
DatabaseEngine.DBReadAllClans()
,
DatabaseEngine.DBUpdateClan(Clan)
,
DatabaseEngine.DBUpdateClanItems(Clan)
,
DatabaseEngine.DBDeleteClan(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBCreateClan(Clan)
public java.util.List<Clan.MemberRecord> DBReadClanMembers(java.lang.String clan)
DatabaseEngine
DBReadClanMembers
in interface DatabaseEngine
clan
- the name of the clan to read members forClan.MemberRecord
,
DatabaseEngine.DBGetClanMember(String, String)
,
DatabaseEngine.DBUpdateClanMembership(String, String, int)
,
DatabaseEngine.DBUpdateClanKills(String, String, int, int)
public void DBUpdateClanMembership(java.lang.String name, java.lang.String clan, int role)
DatabaseEngine
DBUpdateClanMembership
in interface DatabaseEngine
name
- the name of the member to updateclan
- the name of the clan to update a member forrole
- the new role constantDatabaseEngine.DBReadClanMembers(String)
,
DatabaseEngine.DBGetClanMember(String, String)
,
DatabaseEngine.DBUpdateClanKills(String, String, int, int)
public void DBUpdateClanKills(java.lang.String clan, java.lang.String name, int adjMobKills, int adjPlayerKills)
DatabaseEngine
DBUpdateClanKills
in interface DatabaseEngine
clan
- the name of the clan to update a member forname
- the name of the member to updateadjMobKills
- the number of ADDITIONAL (plus or minus) clan mob killsadjPlayerKills
- the number of ADDITIONAL (plus or minus) clan pvp killspublic void DBUpdateClanDonates(java.lang.String clan, java.lang.String name, double adjGold, int adjXP, double adjDues)
DatabaseEngine
DBUpdateClanDonates
in interface DatabaseEngine
clan
- the name of the clan to update a member forname
- the name of the member to updateadjGold
- the number of ADDITIONAL (plus or minus) clan gold donationsadjXP
- the number of ADDITIONAL (plus or minus) clan xp adjustmentsadjDues
- the number of ADDITIONAL (plus or minus) clan dues madepublic Clan.MemberRecord DBGetClanMember(java.lang.String clan, java.lang.String name)
DatabaseEngine
DBGetClanMember
in interface DatabaseEngine
clan
- the name of the clan to read a member forname
- the name of the member to read inClan.MemberRecord
,
DatabaseEngine.DBReadClanMembers(String)
,
DatabaseEngine.DBUpdateClanMembership(String, String, int)
,
DatabaseEngine.DBUpdateClanKills(String, String, int, int)
public void DBUpdateClan(Clan C)
DatabaseEngine
DBUpdateClan
in interface DatabaseEngine
C
- the clan to updateClan
,
DatabaseEngine.DBReadAllClans()
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBUpdateClanItems(Clan)
,
DatabaseEngine.DBDeleteClan(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBCreateClan(Clan)
public void DBUpdateClanItems(Clan C)
DatabaseEngine
DBUpdateClanItems
in interface DatabaseEngine
C
- the clan whose items to updateClan
,
DatabaseEngine.DBReadAllClans()
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBUpdateClan(Clan)
,
DatabaseEngine.DBDeleteClan(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBCreateClan(Clan)
public void DBDeleteClan(Clan C)
DatabaseEngine
DBDeleteClan
in interface DatabaseEngine
C
- the clan to deleteClan
,
DatabaseEngine.DBReadAllClans()
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBUpdateClan(Clan)
,
DatabaseEngine.DBUpdateClanItems(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBCreateClan(Clan)
public void DBCreateClan(Clan C)
DatabaseEngine
DBCreateClan
in interface DatabaseEngine
C
- the clan to createClan
,
DatabaseEngine.DBReadAllClans()
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBUpdateClan(Clan)
,
DatabaseEngine.DBUpdateClanItems(Clan)
,
DatabaseEngine.DBReadClanItems(Map)
,
DatabaseEngine.DBDeleteClan(Clan)
public void DBUpdateEmail(MOB mob)
DatabaseEngine
DBUpdateEmail
in interface DatabaseEngine
mob
- the mob containing the email addy to changepublic java.lang.String DBPlayerEmailSearch(java.lang.String email)
DatabaseEngine
DBPlayerEmailSearch
in interface DatabaseEngine
email
- the email address to look forpublic void DBUpdatePassword(java.lang.String name, java.lang.String password)
DatabaseEngine
DBUpdatePassword
in interface DatabaseEngine
name
- the mob name containing the pw to changepassword
- the new password stringpublic Pair<java.lang.String,java.lang.Boolean> DBFetchEmailData(java.lang.String name)
DatabaseEngine
DBFetchEmailData
in interface DatabaseEngine
name
- the name of the player to get info forpublic void DBUpdatePlayerAbilities(MOB mob)
DatabaseEngine
DBUpdatePlayerAbilities
in interface DatabaseEngine
mob
- the player to updatepublic void DBUpdatePlayerItems(MOB mob)
DatabaseEngine
DBUpdatePlayerItems
in interface DatabaseEngine
mob
- the player to updatepublic void DBUpdateFollowers(MOB mob)
DatabaseEngine
DBUpdateFollowers
in interface DatabaseEngine
mob
- the mob whose followers to savepublic void DBUpdateAccount(PlayerAccount account)
DatabaseEngine
DBUpdateAccount
in interface DatabaseEngine
account
- the account to updatepublic void DBCreateAccount(PlayerAccount account)
DatabaseEngine
DBCreateAccount
in interface DatabaseEngine
account
- the account to insertpublic PlayerAccount DBReadAccount(java.lang.String Login)
DatabaseEngine
DBReadAccount
in interface DatabaseEngine
Login
- the name of the account to loadpublic java.util.List<PlayerAccount> DBListAccounts(java.lang.String mask)
DatabaseEngine
DBListAccounts
in interface DatabaseEngine
mask
- lowercase substring to search for or nullpublic java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] DBScanPrideAccountWinners(int topThisMany, short scanCPUPercent)
DatabaseEngine
DBScanPrideAccountWinners
in interface DatabaseEngine
topThisMany
- the number of items in each listscanCPUPercent
- the percent (0-100) to spend workingTimeClock.TimePeriod
,
AccountStats.PrideStat
public java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] DBScanPridePlayerWinners(int topThisMany, short scanCPUPercent)
DatabaseEngine
DBScanPridePlayerWinners
in interface DatabaseEngine
topThisMany
- the number of items in each listscanCPUPercent
- the percent (0-100) to spend workingTimeClock.TimePeriod
,
AccountStats.PrideStat
public void DBPlayerNameChange(java.lang.String oldName, java.lang.String newName)
DatabaseEngine
DBPlayerNameChange
in interface DatabaseEngine
oldName
- the previous existing name in the dbnewName
- the new name to change them topublic void DBReadAreaData(Area A)
DatabaseEngine
DBReadAreaData
in interface DatabaseEngine
A
- the area to reloadDatabaseEngine.DBIsAreaName(String)
,
DatabaseEngine.DBReadAreaRoomList(String, boolean)
,
DatabaseEngine.DBReadAreaObject(String)
,
DatabaseEngine.DBReadAreaFull(String)
public java.lang.String DBIsAreaName(java.lang.String name)
DatabaseEngine
DBIsAreaName
in interface DatabaseEngine
name
- the name to search for (hopefully case insensitive)DatabaseEngine.DBReadAreaData(Area)
,
DatabaseEngine.DBReadAreaRoomList(String, boolean)
,
DatabaseEngine.DBReadAreaObject(String)
,
DatabaseEngine.DBReadAreaFull(String)
public DatabaseEngine.RoomContent[] DBReadAreaMobs(java.lang.String name)
DatabaseEngine
DBReadAreaMobs
in interface DatabaseEngine
name
- the name of the areapublic DatabaseEngine.RoomContent[] DBReadAreaItems(java.lang.String name)
DatabaseEngine
DBReadAreaItems
in interface DatabaseEngine
name
- the name of the areapublic Room DBReadRoom(java.lang.String roomID, boolean reportStatus)
DatabaseEngine
DBReadRoom
in interface DatabaseEngine
roomID
- the room id of the room object to loadreportStatus
- true to populate global status, false otherwiseDatabaseEngine.DBReadContent(String, Room, boolean)
,
DatabaseEngine.DBReReadRoomData(Room)
,
DatabaseEngine.DBReadRoomObject(String, boolean)
public boolean DBReadAreaFull(java.lang.String areaName)
DatabaseEngine
DBReadAreaFull
in interface DatabaseEngine
areaName
- the name of the area to loadDatabaseEngine.DBIsAreaName(String)
,
DatabaseEngine.DBReadAreaRoomList(String, boolean)
,
DatabaseEngine.DBReadAreaData(Area)
,
DatabaseEngine.DBReadAreaObject(String)
public void DBReadAllRooms(RoomnumberSet roomsToRead)
DatabaseEngine
DBReadAllRooms
in interface DatabaseEngine
roomsToRead
- null to read all, or the set of rooms to readpublic int[] DBCountRoomMobsItems(java.lang.String roomID)
DatabaseEngine
DBCountRoomMobsItems
in interface DatabaseEngine
roomID
- the room id to return counts forpublic Room[] DBReadRoomObjects(java.lang.String areaName, boolean reportStatus)
DatabaseEngine
DBReadRoomObjects
in interface DatabaseEngine
areaName
- the area name of rooms to loadreportStatus
- true to populate global status, false otherwisepublic java.util.Set<java.lang.String> DBReadAffectedRoomIDs(Area parentA, boolean metro, java.lang.String[] propIDs, java.lang.String[] propArgs)
DatabaseEngine
DBReadAffectedRoomIDs
in interface DatabaseEngine
parentA
- the parent area to limit yourself tometro
- true to also search childrenpropIDs
- the list of Ability IDs.propArgs
- the list of ability arguments to search forpublic java.util.Map<java.lang.Integer,Pair<java.lang.String,java.lang.String>> DBReadIncomingRoomExitIDsMap(java.lang.String roomID)
DatabaseEngine
DBReadIncomingRoomExitIDsMap
in interface DatabaseEngine
roomID
- the room id to find links topublic Room DBReadRoomObject(java.lang.String roomIDtoLoad, boolean reportStatus)
DatabaseEngine
DBReadRoomObject
in interface DatabaseEngine
roomIDtoLoad
- the id of the room to loadreportStatus
- true to populate global status, false otherwiseDatabaseEngine.DBReadRoom(String, boolean)
public boolean DBReReadRoomData(Room room)
DatabaseEngine
DBReReadRoomData
in interface DatabaseEngine
room
- the room to re-read dat aforpublic void DBReadRoomExits(java.lang.String roomID, Room room, boolean reportStatus)
DatabaseEngine
DBReadRoomExits
in interface DatabaseEngine
roomID
- the room idroom
- the room object to populatereportStatus
- true to populate global status, false otherwisepublic Pair<java.lang.String,java.lang.String>[] DBReadRoomExitIDs(java.lang.String roomID)
DatabaseEngine
DBReadRoomExitIDs
in interface DatabaseEngine
roomID
- the room idpublic void DBReadCatalogs()
DatabaseEngine
DBReadCatalogs
in interface DatabaseEngine
public void DBReadSpace()
DatabaseEngine
DBReadSpace
in interface DatabaseEngine
public void DBReadContent(java.lang.String roomID, Room thisRoom, boolean makeLive)
DatabaseEngine
DBReadContent
in interface DatabaseEngine
roomID
- the id of the room to loadthisRoom
- the room object to load the content into (required!)makeLive
- true to bring the mobs to life, false to leave them dead.public void DBReadMobContent(java.lang.String roomID, Room thisRoom)
DatabaseEngine
DBReadMobContent
in interface DatabaseEngine
roomID
- the id of the room to loadthisRoom
- the room object to load the content into (required!)public void DBReadItemContent(java.lang.String roomID, Room thisRoom)
DatabaseEngine
DBReadItemContent
in interface DatabaseEngine
roomID
- the id of the room to loadthisRoom
- the room object to load the content into (required!)public boolean DBIsSavedRoomItemCopy(java.lang.String roomID, java.lang.String itemName)
DatabaseEngine
DBIsSavedRoomItemCopy
in interface DatabaseEngine
roomID
- the id of the room to loaditemName
- the name of the item to look forpublic Item DBGetSavedRoomItemCopy(java.lang.String roomID, java.lang.String itemName)
DatabaseEngine
DBGetSavedRoomItemCopy
in interface DatabaseEngine
roomID
- the id of the room to loaditemName
- the name of the item to look forpublic Area DBReadAreaObject(java.lang.String areaName)
DatabaseEngine
DBReadAreaObject
in interface DatabaseEngine
areaName
- the name of the area to loadDatabaseEngine.DBIsAreaName(String)
,
DatabaseEngine.DBReadAreaRoomList(String, boolean)
,
DatabaseEngine.DBReadAreaData(Area)
,
DatabaseEngine.DBReadAreaFull(String)
public RoomnumberSet DBReadAreaRoomList(java.lang.String areaName, boolean reportStatus)
DatabaseEngine
DBReadAreaRoomList
in interface DatabaseEngine
areaName
- the name of the area to load numbers fromreportStatus
- true to update the global status, false otherwiseRoomnumberSet
public void DBCreateThisItem(java.lang.String roomID, Item thisItem)
DatabaseEngine
DBCreateThisItem
in interface DatabaseEngine
roomID
- the room id to save the item atthisItem
- the item to savepublic void DBCreateThisMOB(java.lang.String roomID, MOB thisMOB)
DatabaseEngine
DBCreateThisMOB
in interface DatabaseEngine
roomID
- the room id to save the mob atthisMOB
- the mob to savepublic void DBUpdateExits(Room room)
DatabaseEngine
DBUpdateExits
in interface DatabaseEngine
room
- the room whose exits to savepublic java.util.List<Quest> DBReadQuests()
DatabaseEngine
DBReadQuests
in interface DatabaseEngine
DatabaseEngine.DBUpdateQuests(List)
,
DatabaseEngine.DBUpdateQuest(Quest)
,
Quest
public void DBUpdateQuest(Quest Q)
DatabaseEngine
DBUpdateQuest
in interface DatabaseEngine
Q
- the quest to updateDatabaseEngine.DBUpdateQuests(List)
,
DatabaseEngine.DBReadQuests()
,
Quest
public void DBUpdateQuests(java.util.List<Quest> quests)
DatabaseEngine
DBUpdateQuests
in interface DatabaseEngine
quests
- the list of quests to end up withQuest
,
DatabaseEngine.DBUpdateQuest(Quest)
,
DatabaseEngine.DBReadQuests()
public java.lang.String DBReadRoomMOBMiscText(java.lang.String roomID, java.lang.String mobID)
DatabaseEngine
DBReadRoomMOBMiscText
in interface DatabaseEngine
roomID
- the room idmobID
- the unique mob string for that roomEnvironmental.text()
,
DBIdentifiable.databaseID()
public java.lang.String DBReadRoomDesc(java.lang.String roomID)
DatabaseEngine
DBReadRoomDesc
in interface DatabaseEngine
roomID
- the room id of the description to readpublic Item DBReadRoomItem(java.lang.String roomID, java.lang.String itemNum)
DatabaseEngine
DBReadRoomItem
in interface DatabaseEngine
roomID
- the room iditemNum
- the item database id codepublic MOB DBReadRoomMOB(java.lang.String roomID, java.lang.String mobID)
DatabaseEngine
DBReadRoomMOB
in interface DatabaseEngine
roomID
- the room idmobID
- the mob database id codepublic void DBUpdateTheseMOBs(Room room, java.util.List<MOB> mobs)
DatabaseEngine
DBUpdateTheseMOBs
in interface DatabaseEngine
room
- the savable roommobs
- the mobs in the room that need savingDatabaseEngine.DBUpdateMOBs(Room)
public void DBUpdateTheseItems(Room room, java.util.List<Item> items)
DatabaseEngine
DBUpdateTheseItems
in interface DatabaseEngine
room
- the savable roomitems
- the items in the room that need savingpublic void DBUpdateMOBs(Room room)
DatabaseEngine
DBUpdateMOBs
in interface DatabaseEngine
room
- the savable roomDatabaseEngine.DBUpdateTheseMOBs(Room, List)
public void DBDeletePlayerPrivateJournalEntries(java.lang.String name)
DatabaseEngine
DBDeletePlayerPrivateJournalEntries
in interface DatabaseEngine
name
- the name of the user to delete journal entries frompublic void DBUpdateJournal(java.lang.String journalID, JournalEntry entry)
DatabaseEngine
DBUpdateJournal
in interface DatabaseEngine
journalID
- the name/id of the journalentry
- the complete entry recordJournalEntry
,
DatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBDeleteJournal(String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public void DBUpdateJournalMetaData(java.lang.String journalID, JournalsLibrary.JournalMetaData metaData)
DatabaseEngine
DBUpdateJournalMetaData
in interface DatabaseEngine
journalID
- the name of the journals whose stats to updatemetaData
- the metadata to resave into the databaseDatabaseEngine.DBReadJournalMetaData(String, com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary.JournalMetaData)
,
DatabaseEngine.DBUpdateMessageReplies(String, int)
public void DBReadJournalMetaData(java.lang.String journalID, JournalsLibrary.JournalMetaData metaData)
DatabaseEngine
DBReadJournalMetaData
in interface DatabaseEngine
journalID
- the name of the journals whose stats to updatemetaData
- the created metadata object to fill inDatabaseEngine.DBUpdateMessageReplies(String, int)
,
DatabaseEngine.DBUpdateJournalMetaData(String, com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary.JournalMetaData)
public java.lang.String DBGetRealJournalName(java.lang.String possibleName)
DatabaseEngine
DBGetRealJournalName
in interface DatabaseEngine
possibleName
- the possible name of a journalpublic void DBDeleteJournal(java.lang.String journalID, java.lang.String msgKeyOrNull)
DatabaseEngine
DBDeleteJournal
in interface DatabaseEngine
journalID
- the name/id of the journalmsgKeyOrNull
- the message key, or null to delete ALL messagesDatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public java.util.List<java.lang.String> DBReadJournals()
DatabaseEngine
DBReadJournals
in interface DatabaseEngine
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBDeleteJournal(String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public JournalEntry DBReadJournalEntry(java.lang.String journalID, java.lang.String messageKey)
DatabaseEngine
DBReadJournalEntry
in interface DatabaseEngine
journalID
- the name/id of the journalmessageKey
- the message keyJournalEntry
,
DatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBDeleteJournal(String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public void DBUpdateMessageReplies(java.lang.String key, int numReplies)
DatabaseEngine
DBUpdateMessageReplies
in interface DatabaseEngine
key
- the key of the parent op messagenumReplies
- the new number of replies to registerDatabaseEngine.DBReadJournalMetaData(String, com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary.JournalMetaData)
,
DatabaseEngine.DBUpdateJournalMetaData(String, com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary.JournalMetaData)
public java.util.List<JournalEntry> DBReadJournalMsgsByUpdateDate(java.lang.String journalID, boolean ascending)
DatabaseEngine
DBReadJournalMsgsByUpdateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by dateDatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
public java.util.List<JournalEntry> DBReadJournalMsgsByUpdateDate(java.lang.String journalID, boolean ascending, int limit)
DatabaseEngine
DBReadJournalMsgsByUpdateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by datelimit
- the number of messages to return, maxDatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
public java.util.List<JournalEntry> DBReadJournalMsgsByUpdateRange(java.lang.String journalID, java.lang.String from, long startRange, long endRange)
DatabaseEngine
DBReadJournalMsgsByUpdateRange
in interface DatabaseEngine
journalID
- the journal to read all the messages fromfrom
- the source of the entry or null or ''startRange
- the starting timestamp for the range of update timesendRange
- the ending timestamp for the range of update timesDatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
,
DatabaseEngine.DBReadJournalMsgsByTimeStamps(String, String, long, long)
,
DatabaseEngine.DBReadJournalMsgsByExpiRange(String, String, long, long, String)
public java.util.List<JournalEntry> DBReadJournalMsgsByExpiRange(java.lang.String journalID, java.lang.String from, long startRange, long endRange, java.lang.String searchStr)
DatabaseEngine
DBReadJournalMsgsByExpiRange
in interface DatabaseEngine
journalID
- the journal to read all the messages fromfrom
- the source of the entry or null or ''startRange
- the starting timestamp for the range of update timesendRange
- the ending timestamp for the range of update timessearchStr
- null, or a search str to match in the DATA (metadata)DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
,
DatabaseEngine.DBReadJournalMsgsByTimeStamps(String, String, long, long)
,
DatabaseEngine.DBReadJournalMsgsByUpdateRange(String, String, long, long)
public java.util.List<JournalEntry> DBReadAllJournalMsgsByExpiDateStr(java.lang.String journalID, long startRange, java.lang.String searchStr)
DatabaseEngine
DBReadAllJournalMsgsByExpiDateStr
in interface DatabaseEngine
journalID
- the journal to read all the messages fromstartRange
- the starting timestamp for the range of update timessearchStr
- null, or a search str to match in the DATA (metadata)DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
,
DatabaseEngine.DBReadJournalMsgsByTimeStamps(String, String, long, long)
,
DatabaseEngine.DBReadJournalMsgsByUpdateRange(String, String, long, long)
public java.util.List<JournalEntry> DBReadJournalMsgsByTimeStamps(java.lang.String journalID, java.lang.String from, long startRange, long endRange)
DatabaseEngine
DBReadJournalMsgsByTimeStamps
in interface DatabaseEngine
journalID
- the journal to read all the messages fromfrom
- the source of the entry or null or ''startRange
- the starting timestamp for the range of timesendRange
- the ending timestamp for the range of timesDatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
,
DatabaseEngine.DBReadJournalMsgsByUpdateRange(String, String, long, long)
,
DatabaseEngine.DBReadJournalMsgsByExpiRange(String, String, long, long, String)
public java.util.List<JournalEntry> DBReadJournalMsgsByUpdateDate(java.lang.String journalID, boolean ascending, int limit, java.lang.String[] tos)
DatabaseEngine
DBReadJournalMsgsByUpdateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by datelimit
- the number of messages to return, maxtos
- return only messages marked TO one of the names in this arrayDatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean)
public java.util.List<JournalEntry> DBReadJournalMsgsByCreateDate(java.lang.String journalID, boolean ascending)
DatabaseEngine
DBReadJournalMsgsByCreateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by dateDatabaseEngine.DBReadJournalMsgsByCreateDate(String, boolean, int)
,
DatabaseEngine.DBReadJournalMsgsByCreateDate(String, boolean, int, String[])
public java.util.List<JournalEntry> DBReadJournalMsgsByCreateDate(java.lang.String journalID, boolean ascending, int limit)
DatabaseEngine
DBReadJournalMsgsByCreateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by datelimit
- the number of messages to return, maxDatabaseEngine.DBReadJournalMsgsByCreateDate(String, boolean)
,
DatabaseEngine.DBReadJournalMsgsByUpdateDate(String, boolean, int, String[])
public java.util.List<JournalEntry> DBReadJournalMsgsByCreateDate(java.lang.String journalID, boolean ascending, int limit, java.lang.String[] tos)
DatabaseEngine
DBReadJournalMsgsByCreateDate
in interface DatabaseEngine
journalID
- the journal to read all the messages fromascending
- true to order the read entries by datelimit
- the number of messages to return, maxtos
- return only messages marked TO one of the names in this arrayDatabaseEngine.DBReadJournalMsgsByCreateDate(String, boolean, int)
,
DatabaseEngine.DBReadJournalMsgsByCreateDate(String, boolean)
public java.util.List<JournalEntry> DBSearchAllJournalEntries(java.lang.String journalID, java.lang.String searchStr)
DatabaseEngine
DBSearchAllJournalEntries
in interface DatabaseEngine
journalID
- the name/id of the journal to searchsearchStr
- the search substringpublic java.util.List<JournalEntry> DBReadJournalMsgsNewerThan(java.lang.String journalID, java.lang.String to, long olderDate)
DatabaseEngine
DBReadJournalMsgsNewerThan
in interface DatabaseEngine
journalID
- the name/ID of the journal/forumto
- NULL, ALL, or a user the messages were sent toolderDate
- the date beyond which to return messages forDatabaseEngine.DBReadJournalMsgsOlderThan(String, String, long)
public int DBCountJournalMsgsNewerThan(java.lang.String journalID, java.lang.String to, long olderDate)
DatabaseEngine
DBCountJournalMsgsNewerThan
in interface DatabaseEngine
journalID
- the name/ID of the journal/forumto
- NULL, ALL, or a user the messages were sent toolderDate
- the date beyond which to return messages forDatabaseEngine.DBReadJournalMsgsOlderThan(String, String, long)
public java.util.List<JournalEntry> DBReadJournalMsgsOlderThan(java.lang.String journalID, java.lang.String to, long newestDate)
DatabaseEngine
DBReadJournalMsgsOlderThan
in interface DatabaseEngine
journalID
- the name/ID of the journal/forumto
- NULL, ALL, or a user the messages were sent tonewestDate
- the date before which to return messages forDatabaseEngine.DBReadJournalMsgsNewerThan(String, String, long)
,
DatabaseEngine.DBReadJournalMsgsExpiredBefore(String, String, long)
public java.util.List<JournalEntry> DBReadJournalMsgsExpiredBefore(java.lang.String journalID, java.lang.String to, long newestDate)
DatabaseEngine
DBReadJournalMsgsExpiredBefore
in interface DatabaseEngine
journalID
- the name/ID of the journal/forumto
- NULL, ALL, or a user the messages were sent tonewestDate
- the date before which to return messages forDatabaseEngine.DBReadJournalMsgsNewerThan(String, String, long)
,
DatabaseEngine.DBReadJournalMsgsOlderThan(String, String, long)
public java.util.List<JournalEntry> DBReadJournalPageMsgs(java.lang.String journalID, java.lang.String parent, java.lang.String searchStr, long newerDate, int limit)
DatabaseEngine
DBReadJournalPageMsgs
in interface DatabaseEngine
journalID
- the name of the journal/forum to load fromparent
- the parent message (for getting replies), or nullsearchStr
- the string to search for in the msg/subject, or nullnewerDate
- 0 for all real msgs, parent for newer than timestamp, otherwise before timestamplimit
- the maximum number of messages to returnpublic java.util.List<java.lang.Long> DBReadJournalPages(java.lang.String journalID, java.lang.String parent, java.lang.String searchStr, int limit)
DatabaseEngine
DBReadJournalPages
in interface DatabaseEngine
journalID
- the name of the journal/forum to load fromparent
- the parent message (for getting replies), or nullsearchStr
- the string to search for in the msg/subject, or nulllimit
- the maximum number of messages to returnpublic int DBCountJournal(java.lang.String journalID, java.lang.String from, java.lang.String to)
DatabaseEngine
DBCountJournal
in interface DatabaseEngine
journalID
- the name/id of the journalfrom
- NULL, or the user id of a user the messages are fromto
- NULL, or the user id of a user the messages are topublic long[] DBJournalLatestDateNewerThan(java.lang.String journalID, java.lang.String to, long olderTime)
DatabaseEngine
DBJournalLatestDateNewerThan
in interface DatabaseEngine
journalID
- the journal id/name to searchto
- NULL, or ALL, or the recipient nameolderTime
- the time After which to count messagespublic java.lang.String DBWriteJournal(java.lang.String journalID, JournalEntry entry)
DatabaseEngine
DBWriteJournal
in interface DatabaseEngine
journalID
- the name/id of the journalentry
- the enttry to createJournalEntry
,
DatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBDeleteJournal(String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public java.lang.String DBWriteJournal(java.lang.String journalID, java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
DatabaseEngine
DBWriteJournal
in interface DatabaseEngine
journalID
- the name/id of the journalfrom
- the author of the messageto
- who the message is to, such as ALLsubject
- the subject of the messagemessage
- the message to writeDatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBDeleteJournal(String, String)
,
DatabaseEngine.DBUpdateJournal(String, String, String, long)
public java.lang.String DBWriteJournalEmail(java.lang.String mailBoxID, java.lang.String journalSource, java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
DatabaseEngine
DBWriteJournalEmail
in interface DatabaseEngine
mailBoxID
- the journal name/id of the email system MAILBOXjournalSource
- the name/id of the journal that originated the messagefrom
- who the author of the emailto
- the recipientsubject
- the subject of the messagemessage
- the email messageCMProps.Str.MAILBOX
public java.lang.String DBWriteJournalChild(java.lang.String journalID, java.lang.String journalSource, java.lang.String from, java.lang.String to, java.lang.String parentKey, java.lang.String subject, java.lang.String message)
DatabaseEngine
DBWriteJournalChild
in interface DatabaseEngine
journalID
- the name/id of the journal/forumjournalSource
- the originating name/id of an originating journal?from
- who the message is written by, a user idto
- who the message is to, or ALLparentKey
- the message key of the parent message this is a reply tosubject
- the subject of the reply messagemessage
- the message text of the reply messagepublic java.lang.String DBWrite(java.lang.String journalID, JournalEntry entry)
public JournalEntry DBWriteJournalReply(java.lang.String journalID, java.lang.String key, java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
DatabaseEngine
DBWriteJournalReply
in interface DatabaseEngine
journalID
- the name/id of the journalkey
- the key of the message to append tofrom
- who the Reply is fromto
- who the recipient of the reply issubject
- the subject of the replymessage
- the reply textpublic void DBDeleteJournalMessagesByFrom(java.lang.String journal, java.lang.String from)
DatabaseEngine
DBDeleteJournalMessagesByFrom
in interface DatabaseEngine
journal
- the journalfrom
- the sourcepublic void DBUpdateJournal(java.lang.String key, java.lang.String subject, java.lang.String msg, long newAttributes)
DatabaseEngine
DBUpdateJournal
in interface DatabaseEngine
key
- the unique message keysubject
- the new message subjectmsg
- the new message textnewAttributes
- the new message attributes bitmapDatabaseEngine.DBReadJournals()
,
DatabaseEngine.DBReadJournalEntry(String, String)
,
DatabaseEngine.DBUpdateJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, JournalEntry)
,
DatabaseEngine.DBWriteJournal(String, String, String, String, String)
,
DatabaseEngine.DBDeleteJournal(String, String)
public void DBUpdateJournalMessageViews(java.lang.String key, int views)
DatabaseEngine
DBUpdateJournalMessageViews
in interface DatabaseEngine
key
- the message key of the message to updateviews
- the number of views to mark.public void DBTouchJournalMessage(java.lang.String key)
DatabaseEngine
DBTouchJournalMessage
in interface DatabaseEngine
key
- the message to touch.public void DBTouchJournalMessage(java.lang.String key, long newDate)
DatabaseEngine
DBTouchJournalMessage
in interface DatabaseEngine
key
- the key of the message to touchnewDate
- the date/time to set the message update time topublic void DBCreateRoom(Room room)
DatabaseEngine
DBCreateRoom
in interface DatabaseEngine
room
- the room to savepublic void DBUpdateRoom(Room room)
DatabaseEngine
DBUpdateRoom
in interface DatabaseEngine
room
- the room that needs resaving.public void DBUpdatePlayer(MOB mob)
DatabaseEngine
DBUpdatePlayer
in interface DatabaseEngine
mob
- the player mob to updatepublic void DBUpdatePlayerStartRooms(java.lang.String oldID, java.lang.String newID)
DatabaseEngine
DBUpdatePlayerStartRooms
in interface DatabaseEngine
oldID
- the old room idnewID
- the new room idpublic java.util.List<java.lang.String> DBExpiredCharNameSearch(java.util.Set<java.lang.String> skipNames)
DatabaseEngine
DBExpiredCharNameSearch
in interface DatabaseEngine
skipNames
- the names to never expire, or nullpublic void DBUpdatePlayerPlayerStats(MOB mob)
DatabaseEngine
DBUpdatePlayerPlayerStats
in interface DatabaseEngine
mob
- the player to updatepublic void DBUpdatePlayerMOBOnly(MOB mob)
DatabaseEngine
DBUpdatePlayerMOBOnly
in interface DatabaseEngine
mob
- the player mob to updatepublic void DBUpdateMOB(java.lang.String roomID, MOB mob)
DatabaseEngine
DBUpdateMOB
in interface DatabaseEngine
roomID
- the id of the room that the mob was inmob
- the mob to savepublic void DBUpdateItem(java.lang.String roomID, Item item)
DatabaseEngine
DBUpdateItem
in interface DatabaseEngine
roomID
- the id of the room that the item was initem
- the item to savepublic void DBDeleteMOB(java.lang.String roomID, MOB mob)
DatabaseEngine
DBDeleteMOB
in interface DatabaseEngine
roomID
- the id of the room that the mob was inmob
- the mob to removepublic void DBDeleteItem(java.lang.String roomID, Item item)
DatabaseEngine
DBDeleteItem
in interface DatabaseEngine
roomID
- the id of the room that the item was initem
- the item to removepublic void DBUpdateItems(Room room)
DatabaseEngine
DBUpdateItems
in interface DatabaseEngine
room
- the room to updatepublic void DBReCreate(Room room, java.lang.String oldID)
DatabaseEngine
DBReCreate
in interface DatabaseEngine
room
- the room with the new idoldID
- the old room idpublic PlayerLibrary.ThinnerPlayer DBUserSearch(java.lang.String Login)
DatabaseEngine
DBUserSearch
in interface DatabaseEngine
Login
- the name to look forpublic java.lang.String DBLeigeSearch(java.lang.String Login)
DatabaseEngine
DBLeigeSearch
in interface DatabaseEngine
Login
- the player for whom the leige is neededpublic PlayerStats DBLoadPlayerStats(java.lang.String name)
DatabaseEngine
DBLoadPlayerStats
in interface DatabaseEngine
name
- the name of the playerDatabaseEngine.DBSearchPFIL(String)
public PairList<java.lang.String,java.lang.Long> DBSearchPFIL(java.lang.String match)
DatabaseEngine
DBSearchPFIL
in interface DatabaseEngine
match
- the substring to findpublic void DBCreateArea(Area A)
DatabaseEngine
DBCreateArea
in interface DatabaseEngine
A
- the area to create.public void DBDeleteArea(Area A)
DatabaseEngine
DBDeleteArea
in interface DatabaseEngine
A
- the area to destroy.public void DBDeleteAreaAndRooms(Area A)
DatabaseEngine
DBDeleteAreaAndRooms
in interface DatabaseEngine
A
- the area to destroy.public void DBUpdateArea(java.lang.String areaID, Area A)
DatabaseEngine
DBUpdateArea
in interface DatabaseEngine
areaID
- the current db area nameA
- the area data to savepublic void DBDeleteRoom(Room room)
DatabaseEngine
DBDeleteRoom
in interface DatabaseEngine
room
- the room to blow awaypublic MOB DBReadPlayer(java.lang.String name)
DatabaseEngine
DBReadPlayer
in interface DatabaseEngine
name
- the name of the playerpublic PairList<java.lang.String,java.lang.Integer> DBReadPlayerClans(java.lang.String name)
DatabaseEngine
DBReadPlayerClans
in interface DatabaseEngine
name
- the player to read clan info forpublic java.lang.Object DBReadPlayerValue(java.lang.String name, PlayerLibrary.PlayerCode code)
DatabaseEngine
DBReadPlayerValue
in interface DatabaseEngine
name
- the player to read info forcode
- the piece of data to returnPlayerLibrary.PlayerCode
public void DBSetPlayerValue(java.lang.String name, PlayerLibrary.PlayerCode code, java.lang.Object value)
DatabaseEngine
DBSetPlayerValue
in interface DatabaseEngine
name
- the player to set info forcode
- the piece of data to setvalue
- the specific data, usually a string, Integer, or list of pairsPlayerLibrary.PlayerCode
public int DBReadPlayerBitmap(java.lang.String name)
DatabaseEngine
DBReadPlayerBitmap
in interface DatabaseEngine
name
- the name of the playerpublic java.util.List<java.lang.String[]> DBReadPlayerItemData(java.lang.String name, Filterer<Pair<java.lang.String,java.lang.String>> classLocFilter, Filterer<java.lang.String> textFilter)
DatabaseEngine
DBReadPlayerItemData
in interface DatabaseEngine
name
- the name of the playerclassLocFilter
- null, or a filter for the itemid and/or location stringtextFilter
- null, or a filter for the misctextpublic java.util.List<PlayerLibrary.ThinPlayer> getExtendedUserList()
DatabaseEngine
getExtendedUserList
in interface DatabaseEngine
PlayerLibrary.ThinPlayer
public PlayerLibrary.ThinPlayer getThinUser(java.lang.String name)
DatabaseEngine
getThinUser
in interface DatabaseEngine
name
- the name of the character to return.PlayerLibrary.ThinPlayer
public void DBReadFollowers(MOB mob, boolean bringToLife)
DatabaseEngine
DBReadFollowers
in interface DatabaseEngine
mob
- the mob whose players to loadbringToLife
- true to bring them to life, false notDatabaseEngine.DBScanFollowers(String)
public java.util.List<MOB> DBScanFollowers(java.lang.String mobName)
DatabaseEngine
DBScanFollowers
in interface DatabaseEngine
mobName
- the name of the mob to returnDatabaseEngine.DBReadFollowers(MOB, boolean)
public void DBDeletePlayerOnly(java.lang.String mobName)
DatabaseEngine
DBDeletePlayerOnly
in interface DatabaseEngine
mobName
- the mob to deletepublic void DBDeleteAccount(PlayerAccount account)
DatabaseEngine
DBDeleteAccount
in interface DatabaseEngine
account
- the account to deletepublic void DBCreateCharacter(MOB mob)
DatabaseEngine
DBCreateCharacter
in interface DatabaseEngine
mob
- the character to createpublic void DBDeleteAllPlayerData(java.lang.String name)
DatabaseEngine
DBDeleteAllPlayerData
in interface DatabaseEngine
name
- the user id/name of the player to delete all data ofDatabaseEngine.DBReadAllPlayerData(String)
public java.util.List<DatabaseEngine.PlayerData> DBReadAllPlayerData(java.lang.String playerID)
DatabaseEngine
DBReadAllPlayerData
in interface DatabaseEngine
playerID
- the user id of the player to read all data forDatabaseEngine.PlayerData
,
DatabaseEngine.DBDeleteAllPlayerData(String)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerData(java.lang.String playerID, java.lang.String section)
DatabaseEngine
DBReadPlayerData
in interface DatabaseEngine
playerID
- the user id for the player to read data forsection
- the section/type of data to read.DatabaseEngine.PlayerData
,
DatabaseEngine.DBCountPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
,
DatabaseEngine.DBReadPlayerDataKeys(String, String)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerDataByKeyMask(java.lang.String section, java.lang.String keyMask)
DatabaseEngine
DBReadPlayerDataByKeyMask
in interface DatabaseEngine
section
- the section/type of data to returnkeyMask
- the regular expression to match against keysDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerData(String, String, String)
,
DatabaseEngine.DBReadPlayerDataEntry(String)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerDataEntry(java.lang.String key)
DatabaseEngine
DBReadPlayerDataEntry
in interface DatabaseEngine
key
- the key of the specific entry(s) to returnDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerDataByKeyMask(String, String)
,
DatabaseEngine.DBReadPlayerData(String, String, String)
public int DBCountPlayerData(java.lang.String playerID, java.lang.String section)
DatabaseEngine
DBCountPlayerData
in interface DatabaseEngine
playerID
- the user id of the player to count the data ofsection
- the section/type of data to countDatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
,
DatabaseEngine.DBReadPlayerDataKeys(String, String)
public java.util.List<java.lang.String> DBReadPlayerDataKeys(java.lang.String playerID, java.lang.String section)
DatabaseEngine
DBReadPlayerDataKeys
in interface DatabaseEngine
playerID
- the user id for the player to read data forsection
- the section/type of data to read.DatabaseEngine.PlayerData
,
DatabaseEngine.DBCountPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
public int DBCountPlayerData(java.lang.String section)
DatabaseEngine
DBCountPlayerData
in interface DatabaseEngine
section
- the cross-player section of dataDatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
,
DatabaseEngine.DBReadPlayerDataKeys(String, String)
public java.util.List<java.lang.String> DBReadPlayerDataAuthorsBySection(java.lang.String section)
DatabaseEngine
DBReadPlayerDataAuthorsBySection
in interface DatabaseEngine
section
- the cross-player section of dataDatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerData(java.lang.String playerID, java.lang.String section, java.lang.String key)
DatabaseEngine
DBReadPlayerData
in interface DatabaseEngine
playerID
- the name/userid of the player to read data forsection
- the section/type of data to returnkey
- the key of the specific entry(s) to returnDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerDataByKeyMask(String, String)
,
DatabaseEngine.DBReadPlayerDataEntry(String)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerSectionData(java.lang.String section)
DatabaseEngine
DBReadPlayerSectionData
in interface DatabaseEngine
section
- the section, type of data to deleteDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerDataPlayersBySection(String)
,
DatabaseEngine.DBExistsPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerSectionData(String)
public java.util.List<java.lang.String> DBReadPlayerDataPlayersBySection(java.lang.String section)
DatabaseEngine
DBReadPlayerDataPlayersBySection
in interface DatabaseEngine
section
- the section to read player names forDatabaseEngine.DBReadPlayerSectionData(String)
,
DatabaseEngine.DBDeletePlayerSectionData(String)
,
DatabaseEngine.DBExistsPlayerData(String, String)
public boolean DBExistsPlayerData(java.lang.String section, java.lang.String name)
DatabaseEngine
DBExistsPlayerData
in interface DatabaseEngine
section
- the section to read player names forname
- the name of the playerDatabaseEngine.DBReadPlayerSectionData(String)
,
DatabaseEngine.DBReadPlayerDataPlayersBySection(String)
,
DatabaseEngine.DBDeletePlayerSectionData(String)
public java.util.List<DatabaseEngine.PlayerData> DBReadPlayerData(java.lang.String player, java.util.List<java.lang.String> sections)
DatabaseEngine
DBReadPlayerData
in interface DatabaseEngine
player
- the user id of the player to delete the data ofsections
- the sections/types of data to return records forDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBCountPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBExistsPlayerData(String, String)
public java.util.Set<java.lang.String> DBReadUniqueSections(java.lang.String name)
DatabaseEngine
DBReadUniqueSections
in interface DatabaseEngine
name
- the user id of the player/clan/whateverDatabaseEngine.PlayerData
,
DatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBCountPlayerData(String, String)
,
DatabaseEngine.DBDeletePlayerData(String, String)
,
DatabaseEngine.DBExistsPlayerData(String, String)
public void DBDeletePlayerData(java.lang.String playerID, java.lang.String section)
DatabaseEngine
DBDeletePlayerData
in interface DatabaseEngine
playerID
- the user id of the player to delete the data ofsection
- the section/type of data to deleteDatabaseEngine.DBReadPlayerData(String, String)
,
DatabaseEngine.DBCountPlayerData(String, String)
,
DatabaseEngine.DBReadPlayerData(String, List)
public void DBDeletePlayerData(java.lang.String playerID, java.lang.String section, java.lang.String key)
DatabaseEngine
DBDeletePlayerData
in interface DatabaseEngine
playerID
- the name/userid of the player to delete data forsection
- the section/type of data to deletekey
- the key of the specific entry(s) to deleteDatabaseEngine.PlayerData
,
DatabaseEngine.DBUpdatePlayerData(String, String, String, String)
,
DatabaseEngine.DBReCreatePlayerData(String, String, String, String)
public void DBDeletePlayerSectionData(java.lang.String section)
DatabaseEngine
DBDeletePlayerSectionData
in interface DatabaseEngine
section
- the section, type of data to deleteDatabaseEngine.DBReadPlayerDataPlayersBySection(String)
,
DatabaseEngine.DBReadPlayerSectionData(String)
public DatabaseEngine.PlayerData DBReCreatePlayerData(java.lang.String name, java.lang.String section, java.lang.String key, java.lang.String xml)
DatabaseEngine
DBReCreatePlayerData
in interface DatabaseEngine
name
- the userid/player id of the entry to create/updatesection
- the section/type of data to create/updatekey
- the key of the specific entry(s) to create/updatexml
- the new data to save for this entry.DatabaseEngine.PlayerData
,
DatabaseEngine.DBReCreatePlayerData(String, String, String, String)
,
DatabaseEngine.DBCreatePlayerData(String, String, String, String)
public void DBUpdatePlayerData(java.lang.String name, java.lang.String section, java.lang.String key, java.lang.String xml)
DatabaseEngine
DBUpdatePlayerData
in interface DatabaseEngine
name
- the name/userid of the player to delete data forsection
- the section/type of data to deletekey
- the key of the specific entry(s) to updatexml
- the new data to save for this entry.DatabaseEngine.PlayerData
,
DatabaseEngine.DBDeletePlayerData(String, String, String)
,
DatabaseEngine.DBReCreatePlayerData(String, String, String, String)
public DatabaseEngine.PlayerData DBCreatePlayerData(java.lang.String player, java.lang.String section, java.lang.String key, java.lang.String data)
DatabaseEngine
DBCreatePlayerData
in interface DatabaseEngine
player
- the userid/player id of the entry to createsection
- the section/type of data to createkey
- the key of the specific entry(s) to createdata
- the new xml to save for this entry.DatabaseEngine.PlayerData
,
DatabaseEngine.DBReCreatePlayerData(String, String, String, String)
,
DatabaseEngine.DBCreatePlayerData(String, String, String, String)
public java.util.List<DatabaseEngine.AckRecord> DBReadRaces()
DatabaseEngine
DBReadRaces
in interface DatabaseEngine
DatabaseEngine.AckRecord
,
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.DBDeleteRace(String)
,
DatabaseEngine.DBCreateRace(String, String)
public void DBUpdateRaceCreationDate(java.lang.String raceID)
DatabaseEngine
DBUpdateRaceCreationDate
in interface DatabaseEngine
raceID
- the race ID to updateDatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBReadRaces()
,
DatabaseEngine.DBDeleteRace(String)
,
DatabaseEngine.DBCreateRace(String, String)
,
DatabaseEngine.updateAllRaceDates()
,
DatabaseEngine.pruneOldRaces()
public boolean isRaceExpired(java.lang.String raceID)
DatabaseEngine
isRaceExpired
in interface DatabaseEngine
raceID
- the race ID to checkDatabaseEngine.DBReadRaces()
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.DBDeleteRace(String)
,
DatabaseEngine.DBCreateRace(String, String)
public void registerRaceUsed(Race R)
DatabaseEngine
registerRaceUsed
in interface DatabaseEngine
R
- the race to updateDatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.updateAllRaceDates()
,
DatabaseEngine.pruneOldRaces()
public int pruneOldRaces()
DatabaseEngine
pruneOldRaces
in interface DatabaseEngine
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.updateAllRaceDates()
,
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.registerRaceUsed(Race)
,
DatabaseEngine.updateAllRaceDates()
public int updateAllRaceDates()
DatabaseEngine
updateAllRaceDates
in interface DatabaseEngine
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.registerRaceUsed(Race)
,
DatabaseEngine.pruneOldRaces()
public void DBDeleteRace(java.lang.String raceID)
DatabaseEngine
DBDeleteRace
in interface DatabaseEngine
raceID
- the ID of the race to deleteDatabaseEngine.DBReadRaces()
,
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.DBCreateRace(String, String)
public void DBCreateRace(java.lang.String raceID, java.lang.String data)
DatabaseEngine
DBCreateRace
in interface DatabaseEngine
raceID
- the unique RaceIDdata
- the xml data defining the generic raceDatabaseEngine.DBReadRaces()
,
DatabaseEngine.isRaceExpired(String)
,
DatabaseEngine.DBUpdateRaceCreationDate(String)
,
DatabaseEngine.DBDeleteRace(String)
public java.util.List<DatabaseEngine.AckRecord> DBReadClasses()
DatabaseEngine
DBReadClasses
in interface DatabaseEngine
DatabaseEngine.AckRecord
,
DatabaseEngine.DBDeleteClass(String)
,
DatabaseEngine.DBCreateClass(String, String)
public void DBDeleteClass(java.lang.String classID)
DatabaseEngine
DBDeleteClass
in interface DatabaseEngine
classID
- the ID of the charclass to deleteDatabaseEngine.DBReadClasses()
,
DatabaseEngine.DBCreateClass(String, String)
public void DBCreateClass(java.lang.String classID, java.lang.String data)
DatabaseEngine
DBCreateClass
in interface DatabaseEngine
classID
- the unique CharClassIDdata
- the xml data defining the generic charclassDatabaseEngine.DBReadClasses()
,
DatabaseEngine.DBDeleteClass(String)
public java.util.List<DatabaseEngine.AckRecord> DBReadAbilities()
DatabaseEngine
DBReadAbilities
in interface DatabaseEngine
DatabaseEngine.AckRecord
,
DatabaseEngine.DBDeleteAbility(String)
,
DatabaseEngine.DBCreateAbility(String, String, String)
public void DBDeleteAbility(java.lang.String classID)
DatabaseEngine
DBDeleteAbility
in interface DatabaseEngine
classID
- the ID of the ability to deleteDatabaseEngine.DBReadAbilities()
,
DatabaseEngine.DBCreateAbility(String, String, String)
public void DBCreateAbility(java.lang.String classID, java.lang.String typeClass, java.lang.String data)
DatabaseEngine
DBCreateAbility
in interface DatabaseEngine
classID
- the unique AbilityIDtypeClass
- the Ability class ID to base off of (GenAbility, etc.)data
- the xml data defining the generic abilityDatabaseEngine.DBReadAbilities()
,
DatabaseEngine.DBDeleteAbility(String)
public void DBReadArtifacts()
DatabaseEngine
DBReadArtifacts
in interface DatabaseEngine
public CoffeeTableRow DBReadStat(long startTime)
DatabaseEngine
DBReadStat
in interface DatabaseEngine
startTime
- the timestamp of the day startDatabaseEngine.DBUpdateStat(long, String)
,
DatabaseEngine.DBDeleteStat(long)
,
DatabaseEngine.DBCreateStat(long, long, String)
,
DatabaseEngine.DBReadStats(long, long)
,
CoffeeTableRow
public void DBDeleteStat(long startTime)
DatabaseEngine
DBDeleteStat
in interface DatabaseEngine
startTime
- the timestamp of the day to deleteDatabaseEngine.DBUpdateStat(long, String)
,
DatabaseEngine.DBCreateStat(long, long, String)
,
DatabaseEngine.DBReadStats(long, long)
,
DatabaseEngine.DBReadStat(long)
public boolean DBCreateStat(long startTime, long endTime, java.lang.String data)
DatabaseEngine
DBCreateStat
in interface DatabaseEngine
startTime
- the timestamp of the day startendTime
- the timestamp of the day enddata
- the xml data to insert.DatabaseEngine.DBUpdateStat(long, String)
,
DatabaseEngine.DBDeleteStat(long)
,
DatabaseEngine.DBReadStats(long, long)
,
DatabaseEngine.DBReadStat(long)
public boolean DBUpdateStat(long startTime, java.lang.String data)
DatabaseEngine
DBUpdateStat
in interface DatabaseEngine
startTime
- the timestamp of the day startdata
- the xml data to use.DatabaseEngine.DBDeleteStat(long)
,
DatabaseEngine.DBCreateStat(long, long, String)
,
DatabaseEngine.DBReadStats(long, long)
,
DatabaseEngine.DBReadStat(long)
public java.util.List<CoffeeTableRow> DBReadStats(long startTime, long endTime)
DatabaseEngine
DBReadStats
in interface DatabaseEngine
startTime
- the timestamp of the first rowendTime
- 0, or the end time of the last row.DatabaseEngine.DBUpdateStat(long, String)
,
DatabaseEngine.DBDeleteStat(long)
,
DatabaseEngine.DBCreateStat(long, long, String)
,
DatabaseEngine.DBReadStat(long)
,
CoffeeTableRow
public java.lang.String errorStatus()
DatabaseEngine
errorStatus
in interface DatabaseEngine
public void resetConnections()
DatabaseEngine
resetConnections
in interface DatabaseEngine
public int pingAllConnections(long overrideTimeoutIntervalMillis)
DatabaseEngine
pingAllConnections
in interface DatabaseEngine
overrideTimeoutIntervalMillis
- the connection timeoutpublic int pingAllConnections()
DatabaseEngine
pingAllConnections
in interface DatabaseEngine
public void DBCreatePoll(java.lang.String name, java.lang.String player, java.lang.String subject, java.lang.String description, java.lang.String optionXML, int flag, java.lang.String qualZapper, java.lang.String results, long expiration)
DatabaseEngine
DBCreatePoll
in interface DatabaseEngine
name
- the unique name of the pollplayer
- the user/character id of the creatorsubject
- the title/subject of the polldescription
- the long descriptionsoptionXML
- choices format <OPTIONS><OPTION>option text...flag
- flag bitmap, see Poll.FLAG_ABSTAIN
qualZapper
- the zapper mask for who can answer the pollresults
- <RESULTS><RESULT><USER><IP><ANS>expiration
- the rl date/timestamp of when the poll auto-closesPoll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBUpdatePoll(String, String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePollResults(String, String)
,
DatabaseEngine.DBDeletePoll(String)
,
DatabaseEngine.DBReadPollList()
,
DatabaseEngine.DBReadPoll(String)
public void DBUpdatePoll(java.lang.String oldName, java.lang.String name, java.lang.String player, java.lang.String subject, java.lang.String description, java.lang.String optionXML, int flag, java.lang.String qualZapper, java.lang.String results, long expiration)
DatabaseEngine
DBUpdatePoll
in interface DatabaseEngine
oldName
- required, the unique old name of the poll, or current namename
- the unique new name of the poll, or the current oneplayer
- the user/character id of the creatorsubject
- the title/subject of the polldescription
- the long descriptionsoptionXML
- choices format <OPTIONS><OPTION>option text...flag
- flag bitmap, see Poll.FLAG_ABSTAIN
qualZapper
- the zapper mask for who can answer the pollresults
- xml doc: <RESULTS><RESULT><USER><IP><ANS>expiration
- the rl date/timestamp of when the poll auto-closesPoll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBCreatePoll(String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePollResults(String, String)
,
DatabaseEngine.DBDeletePoll(String)
,
DatabaseEngine.DBReadPollList()
,
DatabaseEngine.DBReadPoll(String)
public void DBUpdatePollResults(java.lang.String name, java.lang.String results)
DatabaseEngine
DBUpdatePollResults
in interface DatabaseEngine
name
- the unique name of the pollresults
- xml doc: <RESULTS><RESULT><USER><IP><ANS>Poll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBCreatePoll(String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePoll(String, String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBDeletePoll(String)
,
DatabaseEngine.DBReadPollList()
,
DatabaseEngine.DBReadPoll(String)
public void DBDeletePoll(java.lang.String name)
DatabaseEngine
DBDeletePoll
in interface DatabaseEngine
name
- the unique name of the poll to killPoll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBCreatePoll(String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePoll(String, String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePollResults(String, String)
,
DatabaseEngine.DBReadPollList()
,
DatabaseEngine.DBReadPoll(String)
public java.util.List<DatabaseEngine.PollData> DBReadPollList()
DatabaseEngine
DBReadPollList
in interface DatabaseEngine
DatabaseEngine.PollData
,
Poll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBCreatePoll(String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePoll(String, String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePollResults(String, String)
,
DatabaseEngine.DBDeletePoll(String)
,
DatabaseEngine.DBReadPoll(String)
public DatabaseEngine.PollData DBReadPoll(java.lang.String name)
DatabaseEngine
DBReadPoll
in interface DatabaseEngine
name
- the unique name of the poll to readDatabaseEngine.PollData
,
Poll
,
Poll.FLAG_ABSTAIN
,
DatabaseEngine.DBCreatePoll(String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePoll(String, String, String, String, String, String, int, String, String, long)
,
DatabaseEngine.DBUpdatePollResults(String, String)
,
DatabaseEngine.DBDeletePoll(String)
,
DatabaseEngine.DBReadPoll(String)
public CMFile.CMVFSDir DBReadVFSDirectory()
DatabaseEngine
DBReadVFSDirectory
in interface DatabaseEngine
CMFile.CMVFSDir
,
DatabaseEngine.DBReadVFSFile(String)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBDeleteVFSFile(String)
public CMFile.CMVFSFile DBReadVFSFile(java.lang.String filename)
DatabaseEngine
DBReadVFSFile
in interface DatabaseEngine
filename
- the path of the file to readCMFile.CMVFSFile
,
DatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBDeleteVFSFileLike(String, int)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBDeleteVFSFile(String)
public java.util.List<java.lang.String> DBReadVFSKeysLike(java.lang.String partialFilename, int minMask)
DatabaseEngine
DBReadVFSKeysLike
in interface DatabaseEngine
partialFilename
- the partial filename of the files to readminMask
- 0, or minimum mask valueCMFile.CMVFSFile
,
DatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBDeleteVFSFileLike(String, int)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBDeleteVFSFile(String)
public void DBCreateVFSFile(java.lang.String filename, int bits, java.lang.String creator, long updateTime, java.lang.Object data)
DatabaseEngine
DBCreateVFSFile
in interface DatabaseEngine
filename
- the full name/pathbits
- toggle bits about the filecreator
- the character id of the file creator/ownerupdateTime
- the timestamp of the files creation/update timedata
- the file content, String, StringBuffer, or byte arrayCMFile.VFS_MASK_MASKSAVABLE
,
DatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBDeleteVFSFileLike(String, int)
,
DatabaseEngine.DBReadVFSFile(String)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBDeleteVFSFile(String)
public void DBUpSertVFSFile(java.lang.String filename, int bits, java.lang.String creator, long updateTime, java.lang.Object data)
DatabaseEngine
DBUpSertVFSFile
in interface DatabaseEngine
filename
- the full name/pathbits
- toggle bits about the filecreator
- the character id of the file creator/ownerupdateTime
- the timestamp of the files creation/update timedata
- the file content, String, StringBuffer, or byte arrayCMFile.VFS_MASK_MASKSAVABLE
,
DatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBDeleteVFSFileLike(String, int)
,
DatabaseEngine.DBReadVFSFile(String)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBDeleteVFSFile(String)
public void DBDeleteVFSFile(java.lang.String filename)
DatabaseEngine
DBDeleteVFSFile
in interface DatabaseEngine
filename
- the full path filename of the file to killDatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBReadVFSFile(String)
,
DatabaseEngine.DBDeleteVFSFileLike(String, int)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
public void DBDeleteVFSFileLike(java.lang.String partialFilename, int minMask)
DatabaseEngine
DBDeleteVFSFileLike
in interface DatabaseEngine
partialFilename
- the partial case-insensitive filenameminMask
- 0, or minimum mask valueDatabaseEngine.DBReadVFSDirectory()
,
DatabaseEngine.DBReadVFSFile(String)
,
DatabaseEngine.DBDeleteVFSFile(String)
,
DatabaseEngine.DBCreateVFSFile(String, int, String, long, Object)
,
DatabaseEngine.DBUpSertVFSFile(String, int, String, long, Object)
public java.util.List<Triad<java.lang.String,java.lang.Integer,java.lang.Long>> getBackLogEntries(java.lang.String channelName, int subNameField, int newestToSkip, int numToReturn)
DatabaseEngine
getBackLogEntries
in interface DatabaseEngine
channelName
- the unique name of the channel to return messages fromsubNameField
- any extra query field, or 0newestToSkip
- the number of "newest" messages to skipnumToReturn
- the number of total messages to returnDatabaseEngine.addBackLogEntry(String, int, long, String)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.trimBackLogEntries(String[], int, long)
,
DatabaseEngine.getBackLogPageEnd(String, int)
public int getLowestBackLogIndex(java.lang.String channelName, int subNameField, long afterDate)
DatabaseEngine
getLowestBackLogIndex
in interface DatabaseEngine
channelName
- the unique name of the channel to return messages fromsubNameField
- any extra query field, or 0afterDate
- the date after which we want the lowest indexpublic java.util.List<Triad<java.lang.String,java.lang.Integer,java.lang.Long>> searchBackLogEntries(java.lang.String channelName, int subNameField, java.lang.String search, int numToReturn)
DatabaseEngine
searchBackLogEntries
in interface DatabaseEngine
channelName
- the unique name of the channel to return messages fromsubNameField
- any extra query field, or 0search
- the substring to search fornumToReturn
- the number of total messages to returnDatabaseEngine.addBackLogEntry(String, int, long, String)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.trimBackLogEntries(String[], int, long)
,
DatabaseEngine.getBackLogPageEnd(String, int)
public int getBackLogPageEnd(java.lang.String channelName, int subNameField)
DatabaseEngine
getBackLogPageEnd
in interface DatabaseEngine
channelName
- the unique name of the channel to return messages fromsubNameField
- any extra query field, or 0DatabaseEngine.addBackLogEntry(String, int, long, String)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.trimBackLogEntries(String[], int, long)
,
DatabaseEngine.getBackLogEntries(String, int, int, int)
public void trimBackLogEntries(java.lang.String[] channels, int maxMessages, long oldestTime)
DatabaseEngine
trimBackLogEntries
in interface DatabaseEngine
channels
- the list of channels to go through.maxMessages
- the maximum number of messages to retainoldestTime
- the oldest message to retainDatabaseEngine.getBackLogEntries(String, int, int, int)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.addBackLogEntry(String, int, long, String)
public void addBackLogEntry(java.lang.String channelName, int subNameField, long timeStamp, java.lang.String entry)
DatabaseEngine
addBackLogEntry
in interface DatabaseEngine
channelName
- the unique name of the channelsubNameField
- the sub-category of the channel messagetimeStamp
- the time the message was added in millisentry
- messageDatabaseEngine.getBackLogEntries(String, int, int, int)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.trimBackLogEntries(String[], int, long)
public void checkUpgradeBacklogTable(ChannelsLibrary channels)
DatabaseEngine
checkUpgradeBacklogTable
in interface DatabaseEngine
channels
- the channels library to which the backlog appliesDatabaseEngine.getBackLogEntries(String, int, int, int)
,
DatabaseEngine.delBackLogEntry(String, long)
,
DatabaseEngine.addBackLogEntry(String, int, long, String)
public void delBackLogEntry(java.lang.String channelName, long timeStamp)
DatabaseEngine
delBackLogEntry
in interface DatabaseEngine
channelName
- the unique name of the channeltimeStamp
- the time the message was postedDatabaseEngine.getBackLogEntries(String, int, int, int)
,
DatabaseEngine.addBackLogEntry(String, int, long, String)
,
DatabaseEngine.trimBackLogEntries(String[], int, long)
public int DBRawExecute(java.lang.String sql) throws CMException
DatabaseEngine
DBRawExecute
in interface DatabaseEngine
sql
- the SQL statementCMException
- any errors that occurpublic java.util.List<java.lang.String[]> DBRawQuery(java.lang.String sql) throws CMException
DatabaseEngine
DBRawQuery
in interface DatabaseEngine
sql
- the SQL queryCMException
- any errors that occur