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
ConstructorsConstructorDescriptionLogGameEventCommand(String source, String event, String... params)creates a new LogGameEventCommand.LogGameEventCommand(List<GameEvent> gameEvents)creates a new LogGameEventCommand. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(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:AbstractDBCommandprocesses the database request.- Specified by:
executein interfaceDBCommand- Specified by:
executein classAbstractDBCommand- Parameters:
transaction- DBTransaction- Throws:
SQLException- in case of an database error
-
toString
returns a string suitable for debug output of this DBCommand.
-