Class GetCharacterCreationDateCommand

java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.GetCharacterCreationDateCommand
All Implemented Interfaces:
DBCommand

public class GetCharacterCreationDateCommand extends AbstractDBCommand
Get the date the character was registered
Author:
kymara
  • Constructor Details

    • GetCharacterCreationDateCommand

      public GetCharacterCreationDateCommand(String charname)
      creates a new GetCharacterCreationDateCommand
      Parameters:
      charname - the name of the character to get the date for
  • Method Details

    • execute

      public void execute(DBTransaction transaction) throws SQLException
      Description copied from class: AbstractDBCommand
      processes the database request.
      Specified by:
      execute in interface DBCommand
      Specified by:
      execute in class AbstractDBCommand
      Parameters:
      transaction - DBTransaction
      Throws:
      SQLException - in case of an database error
    • getCreationDate

      public Date getCreationDate()
      To access the character creation date we retrieved
      Returns:
      date of character creation
    • toString

      public String toString()
      returns a string suitable for debug output of this DBCommand.
      Overrides:
      toString in class Object
      Returns:
      debug string