Class GetCharacterCreationDateCommand
java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.GetCharacterCreationDateCommand
- All Implemented Interfaces:
DBCommand
Get the date the character was registered
- Author:
- kymara
-
Constructor Summary
ConstructorsConstructorDescriptionGetCharacterCreationDateCommand(String charname) creates a new GetCharacterCreationDateCommand -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(DBTransaction transaction) processes the database request.To access the character creation date we retrievedtoString()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
-
GetCharacterCreationDateCommand
creates a new GetCharacterCreationDateCommand- Parameters:
charname- the name of the character to get the date for
-
-
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
-
getCreationDate
To access the character creation date we retrieved- Returns:
- date of character creation
-
toString
returns a string suitable for debug output of this DBCommand.
-