Uses of Class
marauroa.server.db.DBTransaction
Package
Description
This package contains low level database stuff.
This package contains infrastructure for asynchronous database access.
This package contains the classes that store information about players
connected to server.
high level database access.
-
Uses of DBTransaction in games.stendhal.server.core.engine.db
Modifier and TypeMethodDescriptionvoid
StendhalCharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
void
StendhalWebsiteDAO.clearOnlineStatus(DBTransaction transaction)
clears the online status of all players (used on server startup)void
PendingAchievementDAO.deletePendingAchievementDetails(DBTransaction transaction, String charname)
Delete used records for a pending achievement for a given playervoid
StendhalNPCDAO.dumpNPCs(DBTransaction transaction)
dumps all NPCsvoid
StendhalRPZoneDAO.dumpZones(DBTransaction transaction)
dumps all zonesStendhalHallOfFameDAO.getCharactersByFametype(DBTransaction transaction, String fametype, int max, boolean ascending)
gets the characters who have taken part in the specified fametypePostmanDAO.getChatMessages(DBTransaction transaction, String charname)
gets a list of ChatMessages for this characterint
StendhalHallOfFameDAO.getHallOfFamePoints(DBTransaction transaction, String charname, String fametype)
Returns the points in the specified hall of fame.PendingAchievementDAO.getPendingAchievementDetails(DBTransaction transaction, String charname)
Get details on pending achievements for a given playerint
AchievementDAO.insertAchievement(DBTransaction transaction, Achievement achievement)
Saves the base data of an achievementprotected void
StendhalWebsiteDAO.insertIntoCharStats(DBTransaction transaction, Player player, Timestamp timestamp)
Insert statistics information about a new playerboolean
StendhalBuddyDAO.isIgnored(DBTransaction transaction, String character, String candidate)
checks whether a palyer is ignored by another playervoid
StendhalItemDAO.itemLogAssignIDIfNotPresent(DBTransaction transaction, RPObject item, Timestamp timestamp)
Assigns the next logid to the specified item in case it does not already have one.void
StendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4)
writes a log entryvoid
StendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, RPObject item, RPEntity player, String event, String param1, String param2, String param3, String param4)
writes a log entryStendhalGroupQuestDAO.load(DBTransaction transaction, String questname)
reads a group questAchievementDAO.loadAllReachedAchievementsOfPlayer(DBTransaction transaction, String playerName)
Loads all achievements a player has reachedAchievementDAO.loadIdentifierIdPairs(DBTransaction transaction)
Loads a map from achievement identifier to database serialStendhalBuddyDAO.loadRelations(DBTransaction transaction, String charname)
loads the relationship lists for the specified charnamevoid
StendhalKillLogDAO.logKill(DBTransaction transaction, Entity killed, Killer killer, Timestamp timestamp)
Logs a kill.void
StendhalWebsiteDAO.logTradeEvent(DBTransaction transaction, String charname, String itemname, int itemid, int quantity, int price, String stats, Timestamp timestamp)
logs a trade eventvoid
PostmanDAO.markMessagesDelivered(DBTransaction transaction, String charname)
marks messages delivered for this charactervoid
AchievementDAO.saveReachedAchievement(DBTransaction transaction, Integer achievementId, String playerName, boolean incReachedCount, Timestamp timestamp)
logs a reached achievement into the databasevoid
StendhalBuddyDAO.saveRelations(DBTransaction transaction, String charname, Player player)
saves the buddy list for the specified charnamevoid
StendhalHallOfFameDAO.setHallOfFamePoints(DBTransaction transaction, String charname, String fametype, int points)
Stores an entry in the hall of fame.void
StendhalWebsiteDAO.setOnlineStatus(DBTransaction transaction, String playerName, boolean online)
sets the online status of a particular playervoid
StendhalCharacterDAO.storeCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
void
PostmanDAO.storeMessage(DBTransaction transaction, String source, String target, String message, String messagetype, Timestamp timestamp)
store a message from any named source We do not specify it must be a player because NPCs use postman to send messagesvoid
StendhalGroupQuestDAO.update(DBTransaction transaction, String questname, String charname, String itemname, Integer quantity, Timestamp timestamp)
logs group quest progressvoid
AchievementDAO.updateAchievement(DBTransaction transaction, Integer id, Achievement achievement)
Updates the achievement with the given idprotected int
StendhalWebsiteDAO.updateCharStats(DBTransaction transaction, Player player, Timestamp timestamp)
updates the statistics information about a playervoid
StendhalSearchIndexDAO.updateSearchIndex(DBTransaction transaction, Set<SearchIndexEntry> entries)
dumps the search indexModifierConstructorDescriptionCharacterIterator(DBTransaction transaction, boolean transform)
creates a character iterator -
Uses of DBTransaction in games.stendhal.server.core.engine.dbcommand
Modifier and TypeMethodDescriptionvoid
AbstractLogItemEventCommand.execute(DBTransaction transaction)
void
DeletePendingAchievementDetailsCommand.execute(DBTransaction transaction)
void
DumpSpeakerNPCsCommand.execute(DBTransaction transaction)
void
DumpZonesCommand.execute(DBTransaction transaction)
void
GetCharacterCreationDateCommand.execute(DBTransaction transaction)
void
GetPostmanMessagesCommand.execute(DBTransaction transaction)
void
LogKillEventCommand.execute(DBTransaction transaction)
void
LogTradeEventCommand.execute(DBTransaction transaction)
void
QueryCanonicalCharacterNamesCommand.execute(DBTransaction transaction)
void
ReadAchievementsForPlayerCommand.execute(DBTransaction transaction)
void
ReadCharactersFromHallOfFameCommand.execute(DBTransaction transaction)
void
ReadGroupQuestCommand.execute(DBTransaction transaction)
void
ReadHallOfFamePointsCommand.execute(DBTransaction transaction)
void
ReadPendingAchievementDetailsCommand.execute(DBTransaction transaction)
void
SetOnlineStatusCommand.execute(DBTransaction transaction)
void
StoreMessageCommand.execute(DBTransaction transaction)
void
UpdateGroupQuestCommand.execute(DBTransaction transaction)
void
UpdateSearchIndexCommand.execute(DBTransaction transaction)
void
WriteHallOfFamePointsCommand.execute(DBTransaction transaction)
void
WriteReachedAchievementCommand.execute(DBTransaction transaction)
protected abstract void
AbstractLogItemEventCommand.log(DBTransaction transaction)
logs the event to the database.protected void
LogMergeItemEventCommand.log(DBTransaction transaction)
protected void
LogSimpleItemEventCommand.log(DBTransaction transaction)
protected void
LogSplitItemEventCommand.log(DBTransaction transaction)
-
Uses of DBTransaction in games.stendhal.tools.modifer
Modifier and TypeMethodDescriptionPlayerModifier.loadPlayer(DBTransaction transaction, String characterName)
boolean
PlayerModifier.savePlayer(DBTransaction transaction, Player player)
-
Uses of DBTransaction in marauroa.server.db
Modifier and TypeMethodDescriptionTransactionPool.beginWork()
starts a transaction and marks it as reservedMaintenanceDBFactory.create(Properties conf)
creates a DBTransaction for the specified database connectionModifier and TypeMethodDescriptionvoid
TransactionPool.commit(DBTransaction dbtransaction)
commits this transaction and frees its reservationvoid
TransactionPool.killTransaction(DBTransaction dbtransaction)
kills a transaction by rolling it back and closing it; it will be removed from the poolvoid
TransactionPool.rollback(DBTransaction dbtransaction)
rolls this transaction back and frees the reservationvoid
UpdateScript.update(DBTransaction transaction)
updates the structure of the databaseModifierConstructorDescriptionJDBCSQLHelper(DBTransaction transaction)
creates a new JDBCSQLHelper -
Uses of DBTransaction in marauroa.server.db.command
Modifier and TypeMethodDescriptionabstract void
AbstractDBCommand.execute(DBTransaction transaction)
processes the database request.void
DBCommand.execute(DBTransaction transaction)
processes the database request. -
Uses of DBTransaction in marauroa.server.game.container
Modifier and TypeMethodDescriptionvoid
SecuredLoginInfo.addLoginEvent(DBTransaction transaction, InetAddress address, int result, Timestamp timestamp)
Add a login event to database each time player login, even if it fails.SecuredLoginInfo.getStatus(DBTransaction transaction)
Returns a string indicating the status of the account.boolean
SecuredLoginInfo.isBlocked(DBTransaction transaction)
Returns true if an account is temporarily blocked due to too many tries in the defined time frame. -
Uses of DBTransaction in marauroa.server.game.db
Modifier and TypeMethodDescriptionboolean
AccountLinkDAO.addAccountLink(DBTransaction transaction, int accountId, String tokenType, String externalUsername, String externalNickname, String externalEmail, String secret)
adds an accountLink.void
AccountDAO.addBan(DBTransaction transaction, String username, String reason, Timestamp expire)
adds a ban (which may be temporary)void
CharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player)
Deprecated.void
CharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
creates a new charactervoid
GameEventDAO.addGameEvent(DBTransaction transaction, String source, String event, String... params)
Deprecated.void
GameEventDAO.addGameEvent(DBTransaction transaction, Timestamp timestamp, String source, String event, String... params)
adds an game event to the logvoid
GameEventDAO.addGameEvents(DBTransaction transaction, List<GameEvent> gameEvents)
adds an list of game event to the logvoid
LoginEventDAO.addLoginEvent(DBTransaction transaction, String username, InetAddress source, String service, String seed, int result)
Deprecated.void
LoginEventDAO.addLoginEvent(DBTransaction transaction, String username, InetAddress source, String service, String seed, int result, Timestamp timestamp)
logs an login attemptvoid
AccountDAO.addPlayer(DBTransaction transaction, String username, byte[] passwordHash, String email)
Deprecated.void
AccountDAO.addPlayer(DBTransaction transaction, String username, byte[] passwordHash, String email, Timestamp timestamp)
creates an accountvoid
StatisticsDAO.addStatisticsEvent(DBTransaction transaction, Statistics.Variables var)
Deprecated.void
StatisticsDAO.addStatisticsEvent(DBTransaction transaction, Statistics.Variables var, Timestamp timestamp)
adds an statistics sample to the database logvoid
AccountDAO.changeEmail(DBTransaction transaction, String username, String email)
changes the email-addressvoid
AccountDAO.changePassword(DBTransaction transaction, String username, String password)
changes the passwordAccountDAO.getAccountBanMessage(DBTransaction transaction, String username)
gets the ban message of the accountint
AccountLinkDAO.getAccountIdByLinkedSecret(DBTransaction transaction, String tokenType, String secret)
gets the id of the accountint
AccountLinkDAO.getAccountIdByLinkedUsername(DBTransaction transaction, String username)
gets the id of the accountCharacterDAO.getAccountName(DBTransaction transaction, String character)
gets the name of the account to which the specified character belongs.AccountDAO.getAccountStatus(DBTransaction transaction, String username)
gets the status of the accountLoginEventDAO.getAmountOfFailedLogins(DBTransaction transaction, long id, int playerId)
gets the amount of failed login attempsBanListDAO.getBannedAddresses(DBTransaction transaction)
gets a list of all banned ip-address rangesCharacterDAO.getCanonicalName(DBTransaction transaction, String character)
gets the canonical spelling of the character nameCharacterDAO.getCharacters(DBTransaction transaction, String username)
gets a list of characters for this accountCharacterDAO.getCreationDate(DBTransaction transaction, String character)
Gets the date the character was registeredint
AccountDAO.getDatabasePlayerId(DBTransaction transaction, String username)
gets the id of the accountAccountDAO.getEmail(DBTransaction transaction, String username)
gets the email-address of the accountLoginEventDAO.getLastSuccessfulLoginEvent(DBTransaction transaction, int playerId, String service)
gets the last successful login eventLoginEventDAO.getLoginEvents(DBTransaction transaction, String username, int events)
gets a list of recent login eventsboolean
CharacterDAO.hasActiveCharacter(DBTransaction transaction, String username, String character)
checks whether the specified account owns the specified character and it is activeboolean
CharacterDAO.hasCharacter(DBTransaction transaction, String character)
checks whether the specified character existsboolean
CharacterDAO.hasCharacter(DBTransaction transaction, String username, String character)
checks whether the specified account owns the specified characterboolean
AccountDAO.hasPlayer(DBTransaction transaction, String username)
checks if this account existsboolean
RPObjectDAO.hasRPObject(DBTransaction transaction, int objectid)
does the rpobject with the specified database id exist?boolean
RPZoneDAO.hasRPZone(DBTransaction transaction, IRPZone.ID zone)
is the specified zone saved to the databaseboolean
LoginEventDAO.isAccountBlocked(DBTransaction transaction, String username)
checks if this account is temporary blocked because of too many failed login attempts.boolean
AccountDAO.isAccountCreationLimitReached(DBTransaction transaction, String address)
is account creation limit reached for recently created accountsboolean
LoginEventDAO.isAddressBlocked(DBTransaction transaction, String address)
checks if the ip-address is temporary blocked because of too many failed login attempts.boolean
CharacterDAO.isCharacterCreationLimitReached(DBTransaction transaction, String username, String address)
is the character creation limit reached?CharacterDAO.loadAllActiveCharacters(DBTransaction transaction, String username)
This method loads all active the characters associated with this username from the database.CharacterDAO.loadAllCharacters(DBTransaction transaction, String username)
This method loads all the characters associated with this username from the database.CharacterDAO.loadCharacter(DBTransaction transaction, String username, String character)
This method loads the character's avatar associated with this character from the database.RPObjectDAO.loadRPObject(DBTransaction transaction, int objectid)
loads an RPObject form the database, using the factory to create the correct subclassRPObjectDAO.loadRPObject(DBTransaction transaction, int objectid, boolean transform)
loads an RPObject form the databasevoid
RPZoneDAO.loadRPZone(DBTransaction transaction, IRPZone zone)
loads storable objects for the specified zone from the databaseboolean
CharacterDAO.removeCharacter(DBTransaction transaction, String username, String character)
deletes a characterboolean
AccountDAO.removePlayer(DBTransaction transaction, String username)
deletes an account from the databaseint
RPObjectDAO.removeRPObject(DBTransaction transaction, int objectid)
deletes an RPObject from the databasevoid
AccountDAO.setAccountStatus(DBTransaction transaction, String username, String status)
sets the status of the accountvoid
CharacterDAO.setCharacterStatus(DBTransaction transaction, String username, String character, String status)
Modifies a character status.void
CharacterDAO.storeCharacter(DBTransaction transaction, String username, String character, RPObject player)
Deprecated.void
CharacterDAO.storeCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
This method stores a character's avatar in the database and updates the link with the Character table.int
RPObjectDAO.storeRPObject(DBTransaction transaction, RPObject object)
saves an RPObject to the databasevoid
RPZoneDAO.storeRPZone(DBTransaction transaction, IRPZone zone)
saves storable objects for the specified zone to the databasevoid
RPZoneDAO.storeRPZone(DBTransaction transaction, IRPZone zone, Iterable<RPObject> content)
saves storable objects for the specified zone to the databasevoid
LoginSeedDAO.useSeed(DBTransaction transaction, String seed)
marks a seed as usedboolean
AccountDAO.verify(DBTransaction transaction, SecuredLoginInfo info)
verifies username and passwordboolean
AccountDAO.verifyPassword(DBTransaction transaction, String username, String password)
verifies the account username and passwordboolean
AccountLinkDAO.verifyPermanentToken(DBTransaction transaction, SecuredLoginInfo info)
verifies that a provided token is a known secretLoginSeedDAO.verifySeed(DBTransaction transaction, String username, String seed)
verifies a login seed -
Uses of DBTransaction in marauroa.server.game.dbcommand
Modifier and TypeMethodDescriptionprotected boolean
LoginCommand.accountStatusCheck(DBTransaction transaction)
protected boolean
LoginCommand.blockCheck(DBTransaction transaction)
protected boolean
LoginCommand.credentialsCheck(DBTransaction transaction)
void
BanAccountCommand.execute(DBTransaction transaction)
void
LoadActiveCharacterCommand.execute(DBTransaction transaction)
void
LoadAllActiveCharactersCommand.execute(DBTransaction transaction)
void
LoadAllCharactersCommand.execute(DBTransaction transaction)
void
LoadBanListCommand.execute(DBTransaction transaction)
void
LoadCharacterCommand.execute(DBTransaction transaction)
void
LogGameEventCommand.execute(DBTransaction transaction)
void
LoginCommand.execute(DBTransaction transaction)
void
LogStatisticsCommand.execute(DBTransaction transaction)
void
SetCharacterStatusCommand.execute(DBTransaction transaction)
void
StoreCharacterCommand.execute(DBTransaction transaction)
void
StoreZoneCommand.execute(DBTransaction transaction)
protected void
LoginCommand.processSuccessfulLogin(DBTransaction transaction)
protected boolean
LoginCommand.verify(DBTransaction transaction)
verifies credentials against the database