Package marauroa.server.game.dbcommand
Class LogGameEventCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
marauroa.server.game.dbcommand.LogGameEventCommand
- All Implemented Interfaces:
DBCommand
logs gameEvents
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionLogGameEventCommand(String source, String event, String... params)
creates a new LogGameEventCommand.LogGameEventCommand(List<GameEvent> gameEvents)
creates a new LogGameEventCommand. -
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
-
LogGameEventCommand
creates a new LogGameEventCommand.- Parameters:
gameEvents
- list of GameEvent
-
LogGameEventCommand
creates a new LogGameEventCommand.- Parameters:
source
- player nameevent
- event typeparams
- parameters
-
-
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
-
toString
returns a string suitable for debug output of this DBCommand.
-