Class SetOnlineStatusCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.SetOnlineStatusCommand
- All Implemented Interfaces:
DBCommand
Sets the online/offline status.
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionSetOnlineStatusCommand(String playerName, boolean online) Creates a new SetOnlineStatusCommand -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(DBTransaction transaction) processes the database request.Methods inherited from class marauroa.server.db.command.AbstractDBCommand
getEnqueueTime, getException, setEnqueueTime, setException
-
Constructor Details
-
SetOnlineStatusCommand
Creates a new SetOnlineStatusCommand- Parameters:
playerName- name of playeronline- true, to mark as online; false to mark as offline
-
-
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 errorIOException- in case of an input/output error
-