Class WriteReachedAchievementCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.WriteReachedAchievementCommand
- All Implemented Interfaces:
DBCommand
command to log a reached achievement to the database
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionWriteReachedAchievementCommand(Integer id, String playerName, boolean incReachedCount)
Create a new command. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(DBTransaction transaction)
processes the database request.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
-
WriteReachedAchievementCommand
Create a new command.- Parameters:
id
- database id of the achievementtitle
- achievement titlecategory
- achievement categoryplayerName
- name of player who has reached itincReachedCount
- shall the reached counter of this achievement be incremented
-
-
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 errorIOException
- in case of an input/output error
-
toString
returns a string suitable for debug output of this DBCommand.
-