Class QueryCanonicalCharacterNamesCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.QueryCanonicalCharacterNamesCommand
- All Implemented Interfaces:
DBCommand
Retrieves the canonical name of a number of characters.
- Author:
- kymara / M. Fuchs
-
Constructor Summary
ConstructorsConstructorDescriptionQueryCanonicalCharacterNamesCommand(Player player, Collection<String> namesToCheck) Creates a new QueryCanonicalCharacterNamesCommand. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(DBTransaction transaction) processes the database request.To access the player sending the query.Return the character name we found to be valid.toString()Returns a string suitable for debug output of this DBCommand.Methods inherited from class marauroa.server.db.command.AbstractDBCommand
getEnqueueTime, getException, setEnqueueTime, setException
-
Constructor Details
-
QueryCanonicalCharacterNamesCommand
Creates a new QueryCanonicalCharacterNamesCommand.- Parameters:
player- the player the check originated fromnamesToCheck- the character names to check
-
-
Method Details
-
execute
Description copied from class:AbstractDBCommandprocesses the database request.- Specified by:
executein interfaceDBCommand- Specified by:
executein classAbstractDBCommand- Parameters:
transaction- DBTransaction- Throws:
SQLException- in case of an database error
-
getPlayer
To access the player sending the query- Returns:
- player
-
getQueriedNames
. Return the character name we queried- Returns:
- character names to be checked
-
getValidNames
Return the character name we found to be valid.- Returns:
- the unique character names we found to be valid
-
toString
Returns a string suitable for debug output of this DBCommand.
-