Uses of Class
marauroa.server.db.DBTransaction
Packages that use 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
Methods in games.stendhal.server.core.engine.db with parameters of type DBTransactionModifier and TypeMethodDescriptionvoidStendhalCharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)voidStendhalWebsiteDAO.clearOnlineStatus(DBTransaction transaction)clears the online status of all players (used on server startup)voidPendingAchievementDAO.deletePendingAchievementDetails(DBTransaction transaction, String charname)Delete used records for a pending achievement for a given playervoidStendhalNPCDAO.dumpNPCs(DBTransaction transaction)dumps all NPCsvoidStendhalRPZoneDAO.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 characterintStendhalHallOfFameDAO.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 playerintAchievementDAO.insertAchievement(DBTransaction transaction, Achievement achievement)Saves the base data of an achievementprotected voidStendhalWebsiteDAO.insertIntoCharStats(DBTransaction transaction, Player player, Timestamp timestamp)Insert statistics information about a new playerbooleanStendhalBuddyDAO.isIgnored(DBTransaction transaction, String character, String candidate)checks whether a palyer is ignored by another playervoidStendhalItemDAO.itemLogAssignIDIfNotPresent(DBTransaction transaction, RPObject item, Timestamp timestamp)Assigns the next logid to the specified item in case it does not already have one.voidStendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4)writes a log entryvoidStendhalItemDAO.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 charnamevoidStendhalKillLogDAO.logKill(DBTransaction transaction, Entity killed, Killer killer, Timestamp timestamp)Logs a kill.voidStendhalWebsiteDAO.logTradeEvent(DBTransaction transaction, String charname, String itemname, int itemid, int quantity, int price, String stats, Timestamp timestamp)logs a trade eventvoidPostmanDAO.markMessagesDelivered(DBTransaction transaction, String charname)marks messages delivered for this charactervoidAchievementDAO.saveReachedAchievement(DBTransaction transaction, Integer achievementId, String playerName, boolean incReachedCount, Timestamp timestamp)logs a reached achievement into the databasevoidStendhalBuddyDAO.saveRelations(DBTransaction transaction, String charname, Player player)saves the buddy list for the specified charnamevoidStendhalHallOfFameDAO.setHallOfFamePoints(DBTransaction transaction, String charname, String fametype, int points)Stores an entry in the hall of fame.voidStendhalWebsiteDAO.setOnlineStatus(DBTransaction transaction, String playerName, boolean online)sets the online status of a particular playervoidStendhalCharacterDAO.storeCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)voidPostmanDAO.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 messagesvoidStendhalGroupQuestDAO.update(DBTransaction transaction, String questname, String charname, String itemname, Integer quantity, Timestamp timestamp)logs group quest progressvoidAchievementDAO.updateAchievement(DBTransaction transaction, Integer id, Achievement achievement)Updates the achievement with the given idprotected intStendhalWebsiteDAO.updateCharStats(DBTransaction transaction, Player player, Timestamp timestamp)updates the statistics information about a playervoidStendhalSearchIndexDAO.updateSearchIndex(DBTransaction transaction, Set<SearchIndexEntry> entries)dumps the search indexConstructors in games.stendhal.server.core.engine.db with parameters of type DBTransactionModifierConstructorDescriptionCharacterIterator(DBTransaction transaction, boolean transform)creates a character iterator -
Uses of DBTransaction in games.stendhal.server.core.engine.dbcommand
Methods in games.stendhal.server.core.engine.dbcommand with parameters of type DBTransactionModifier and TypeMethodDescriptionvoidAbstractLogItemEventCommand.execute(DBTransaction transaction)voidDeletePendingAchievementDetailsCommand.execute(DBTransaction transaction)voidDumpSpeakerNPCsCommand.execute(DBTransaction transaction)voidDumpZonesCommand.execute(DBTransaction transaction)voidGetCharacterCreationDateCommand.execute(DBTransaction transaction)voidGetPostmanMessagesCommand.execute(DBTransaction transaction)voidLogKillEventCommand.execute(DBTransaction transaction)voidLogTradeEventCommand.execute(DBTransaction transaction)voidQueryCanonicalCharacterNamesCommand.execute(DBTransaction transaction)voidReadAchievementsForPlayerCommand.execute(DBTransaction transaction)voidReadCharactersFromHallOfFameCommand.execute(DBTransaction transaction)voidReadGroupQuestCommand.execute(DBTransaction transaction)voidReadHallOfFamePointsCommand.execute(DBTransaction transaction)voidReadPendingAchievementDetailsCommand.execute(DBTransaction transaction)voidSetOnlineStatusCommand.execute(DBTransaction transaction)voidStoreMessageCommand.execute(DBTransaction transaction)voidUpdateGroupQuestCommand.execute(DBTransaction transaction)voidUpdateSearchIndexCommand.execute(DBTransaction transaction)voidWriteHallOfFamePointsCommand.execute(DBTransaction transaction)voidWriteReachedAchievementCommand.execute(DBTransaction transaction)protected abstract voidAbstractLogItemEventCommand.log(DBTransaction transaction)logs the event to the database.protected voidLogMergeItemEventCommand.log(DBTransaction transaction)protected voidLogSimpleItemEventCommand.log(DBTransaction transaction)protected voidLogSplitItemEventCommand.log(DBTransaction transaction) -
Uses of DBTransaction in games.stendhal.tools.modifer
Methods in games.stendhal.tools.modifer with parameters of type DBTransactionModifier and TypeMethodDescriptionPlayerModifier.loadPlayer(DBTransaction transaction, String characterName)booleanPlayerModifier.savePlayer(DBTransaction transaction, Player player) -
Uses of DBTransaction in marauroa.server.db
Methods in marauroa.server.db that return DBTransactionModifier and TypeMethodDescriptionTransactionPool.beginWork()starts a transaction and marks it as reservedMaintenanceDBFactory.create(Properties conf)creates a DBTransaction for the specified database connectionMethods in marauroa.server.db with parameters of type DBTransactionModifier and TypeMethodDescriptionvoidTransactionPool.commit(DBTransaction dbtransaction)commits this transaction and frees its reservationvoidTransactionPool.killTransaction(DBTransaction dbtransaction)kills a transaction by rolling it back and closing it; it will be removed from the poolvoidTransactionPool.rollback(DBTransaction dbtransaction)rolls this transaction back and frees the reservationvoidUpdateScript.update(DBTransaction transaction)updates the structure of the databaseConstructors in marauroa.server.db with parameters of type DBTransactionModifierConstructorDescriptionJDBCSQLHelper(DBTransaction transaction)creates a new JDBCSQLHelper -
Uses of DBTransaction in marauroa.server.db.command
Methods in marauroa.server.db.command with parameters of type DBTransactionModifier and TypeMethodDescriptionabstract voidAbstractDBCommand.execute(DBTransaction transaction)processes the database request.voidDBCommand.execute(DBTransaction transaction)processes the database request. -
Uses of DBTransaction in marauroa.server.game.container
Methods in marauroa.server.game.container with parameters of type DBTransactionModifier and TypeMethodDescriptionvoidSecuredLoginInfo.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.booleanSecuredLoginInfo.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
Methods in marauroa.server.game.db with parameters of type DBTransactionModifier and TypeMethodDescriptionbooleanAccountLinkDAO.addAccountLink(DBTransaction transaction, int accountId, String tokenType, String externalUsername, String externalNickname, String externalEmail, String secret)adds an accountLink.voidAccountDAO.addBan(DBTransaction transaction, String username, String reason, Timestamp expire)adds a ban (which may be temporary)voidCharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player)Deprecated.voidCharacterDAO.addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)creates a new charactervoidGameEventDAO.addGameEvent(DBTransaction transaction, String source, String event, String... params)Deprecated.voidGameEventDAO.addGameEvent(DBTransaction transaction, Timestamp timestamp, String source, String event, String... params)adds an game event to the logvoidGameEventDAO.addGameEvents(DBTransaction transaction, List<GameEvent> gameEvents)adds an list of game event to the logvoidLoginEventDAO.addLoginEvent(DBTransaction transaction, String username, InetAddress source, String service, String seed, int result)Deprecated.voidLoginEventDAO.addLoginEvent(DBTransaction transaction, String username, InetAddress source, String service, String seed, int result, Timestamp timestamp)logs an login attemptvoidAccountDAO.addPlayer(DBTransaction transaction, String username, byte[] passwordHash, String email)Deprecated.voidAccountDAO.addPlayer(DBTransaction transaction, String username, byte[] passwordHash, String email, Timestamp timestamp)creates an accountvoidStatisticsDAO.addStatisticsEvent(DBTransaction transaction, Statistics.Variables var)Deprecated.voidStatisticsDAO.addStatisticsEvent(DBTransaction transaction, Statistics.Variables var, Timestamp timestamp)adds an statistics sample to the database logvoidAccountDAO.changeEmail(DBTransaction transaction, String username, String email)changes the email-addressvoidAccountDAO.changePassword(DBTransaction transaction, String username, String password)changes the passwordAccountDAO.getAccountBanMessage(DBTransaction transaction, String username)gets the ban message of the accountintAccountLinkDAO.getAccountIdByLinkedSecret(DBTransaction transaction, String tokenType, String secret)gets the id of the accountintAccountLinkDAO.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 registeredintAccountDAO.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 eventsbooleanCharacterDAO.hasActiveCharacter(DBTransaction transaction, String username, String character)checks whether the specified account owns the specified character and it is activebooleanCharacterDAO.hasCharacter(DBTransaction transaction, String character)checks whether the specified character existsbooleanCharacterDAO.hasCharacter(DBTransaction transaction, String username, String character)checks whether the specified account owns the specified characterbooleanAccountDAO.hasPlayer(DBTransaction transaction, String username)checks if this account existsbooleanRPObjectDAO.hasRPObject(DBTransaction transaction, int objectid)does the rpobject with the specified database id exist?booleanRPZoneDAO.hasRPZone(DBTransaction transaction, IRPZone.ID zone)is the specified zone saved to the databasebooleanLoginEventDAO.isAccountBlocked(DBTransaction transaction, String username)checks if this account is temporary blocked because of too many failed login attempts.booleanAccountDAO.isAccountCreationLimitReached(DBTransaction transaction, String address)is account creation limit reached for recently created accountsbooleanLoginEventDAO.isAddressBlocked(DBTransaction transaction, String address)checks if the ip-address is temporary blocked because of too many failed login attempts.booleanCharacterDAO.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 databasevoidRPZoneDAO.loadRPZone(DBTransaction transaction, IRPZone zone)loads storable objects for the specified zone from the databasebooleanCharacterDAO.removeCharacter(DBTransaction transaction, String username, String character)deletes a characterbooleanAccountDAO.removePlayer(DBTransaction transaction, String username)deletes an account from the databaseintRPObjectDAO.removeRPObject(DBTransaction transaction, int objectid)deletes an RPObject from the databasevoidAccountDAO.setAccountStatus(DBTransaction transaction, String username, String status)sets the status of the accountvoidCharacterDAO.setCharacterStatus(DBTransaction transaction, String username, String character, String status)Modifies a character status.voidCharacterDAO.storeCharacter(DBTransaction transaction, String username, String character, RPObject player)Deprecated.voidCharacterDAO.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.intRPObjectDAO.storeRPObject(DBTransaction transaction, RPObject object)saves an RPObject to the databasevoidRPZoneDAO.storeRPZone(DBTransaction transaction, IRPZone zone)saves storable objects for the specified zone to the databasevoidRPZoneDAO.storeRPZone(DBTransaction transaction, IRPZone zone, Iterable<RPObject> content)saves storable objects for the specified zone to the databasevoidLoginSeedDAO.useSeed(DBTransaction transaction, String seed)marks a seed as usedbooleanAccountDAO.verify(DBTransaction transaction, SecuredLoginInfo info)verifies username and passwordbooleanAccountDAO.verifyPassword(DBTransaction transaction, String username, String password)verifies the account username and passwordbooleanAccountLinkDAO.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
Methods in marauroa.server.game.dbcommand with parameters of type DBTransactionModifier and TypeMethodDescriptionprotected booleanLoginCommand.accountStatusCheck(DBTransaction transaction)protected booleanLoginCommand.blockCheck(DBTransaction transaction)protected booleanLoginCommand.credentialsCheck(DBTransaction transaction)voidBanAccountCommand.execute(DBTransaction transaction)voidLoadActiveCharacterCommand.execute(DBTransaction transaction)voidLoadAllActiveCharactersCommand.execute(DBTransaction transaction)voidLoadAllCharactersCommand.execute(DBTransaction transaction)voidLoadBanListCommand.execute(DBTransaction transaction)voidLoadCharacterCommand.execute(DBTransaction transaction)voidLogGameEventCommand.execute(DBTransaction transaction)voidLoginCommand.execute(DBTransaction transaction)voidLogStatisticsCommand.execute(DBTransaction transaction)voidSetCharacterStatusCommand.execute(DBTransaction transaction)voidStoreCharacterCommand.execute(DBTransaction transaction)voidStoreZoneCommand.execute(DBTransaction transaction)protected voidLoginCommand.processSuccessfulLogin(DBTransaction transaction)protected booleanLoginCommand.verify(DBTransaction transaction)verifies credentials against the database