Class GetPostmanMessagesCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.GetPostmanMessagesCommand
- All Implemented Interfaces:
DBCommand
Get postman messages for a player
- Author:
- kymara
-
Constructor Summary
ConstructorDescriptionGetPostmanMessagesCommand(Player player)
creates a new GetPostmanMessagesCommand -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(DBTransaction transaction)
processes the database request.gets the list of messagesTo access the player sending the querytoString()
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
-
GetPostmanMessagesCommand
creates a new GetPostmanMessagesCommand- Parameters:
player
- the player the check originated from
-
-
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
-
getMessages
gets the list of messages- Returns:
- messages
-
getPlayer
To access the player sending the query- Returns:
- player
-
toString
returns a string suitable for debug output of this DBCommand.
-