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
ConstructorDescriptionSetOnlineStatusCommand(String playerName, boolean online)
Creates a new SetOnlineStatusCommand -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(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: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
-