Package marauroa.server.game.dbcommand
Class LoadActiveCharacterCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
marauroa.server.game.dbcommand.DBCommandWithCallback
marauroa.server.game.dbcommand.LoadCharacterCommand
marauroa.server.game.dbcommand.LoadActiveCharacterCommand
- All Implemented Interfaces:
DBCommand
asynchronously loads a charcater's RPObject if the character is active
and belongs to the account.
- Author:
- hendrik
-
Field Summary
Fields inherited from class marauroa.server.game.dbcommand.DBCommandWithCallback
callback
-
Constructor Summary
ConstructorDescriptionLoadActiveCharacterCommand(String username, String character)
Creates a new LoadCharacterCommandLoadActiveCharacterCommand(String username, String character, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommand -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(DBTransaction transaction)
processes the database request.Methods inherited from class marauroa.server.game.dbcommand.LoadCharacterCommand
getCharacterName, getObject, getUsername, toString
Methods inherited from class marauroa.server.game.dbcommand.DBCommandWithCallback
getChannel, getClientid, getProtocolVersion, invokeCallback
Methods inherited from class marauroa.server.db.command.AbstractDBCommand
getEnqueueTime, getException, setEnqueueTime, setException
-
Constructor Details
-
LoadActiveCharacterCommand
Creates a new LoadCharacterCommand- Parameters:
username
- name of accountcharacter
- name of character
-
LoadActiveCharacterCommand
public LoadActiveCharacterCommand(String username, String character, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)Creates a new LoadCharacterCommand- Parameters:
username
- name of accountcharacter
- name of charactercallback
- DelayedEventHandlerclientid
- optional parameter available to the callbackchannel
- optional parameter available to the callbackprotocolVersion
- version of protocol
-
-
Method Details
-
execute
Description copied from class:AbstractDBCommand
processes the database request.- Specified by:
execute
in interfaceDBCommand
- Overrides:
execute
in classLoadCharacterCommand
- Parameters:
transaction
- DBTransaction- Throws:
SQLException
- in case of an database errorIOException
- in case of an input/output error
-