Class ReadCharactersFromHallOfFameCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.ReadCharactersFromHallOfFameCommand
- All Implemented Interfaces:
DBCommand
Reads the points from the hall of fame.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionReadCharactersFromHallOfFameCommand(String fametype, int max, boolean ascending)
creates a new ReadHallOfFamePointsCommand -
Method Summary
Methods inherited from class marauroa.server.db.command.AbstractDBCommand
getEnqueueTime, getException, setEnqueueTime, setException
-
Constructor Details
-
ReadCharactersFromHallOfFameCommand
creates a new ReadHallOfFamePointsCommand- Parameters:
fametype
- type of famemax
- maximum number of returned charactersascending
- sort ascending or descending
-
-
Method Details
-
execute
Description copied from class:AbstractDBCommand
processes the database request.- Specified by:
execute
in interfaceDBCommand
- Specified by:
execute
in classAbstractDBCommand
- Parameters:
transaction
- DBTransaction- Throws:
SQLException
- in case of an database error
-
getNames
gets the best characters.- Returns:
- list of character names
-
toString
returns a string suitable for debug output of this DBCommand.
-