footyquiz.server
Class Command

java.lang.Object
  extended by footyquiz.server.Command

public class Command
extends java.lang.Object

Business logics for Footyquiz server.

Author:
Mikael Kopteff & Hannu Leinonen

Constructor Summary
Command()
           
 
Method Summary
 java.lang.String getHighscore(javax.servlet.http.HttpServletRequest request)
          Does the businesslogic and retrival of the highscores using highscoreDAO object to access the database.
 int getHighscoreCount()
          Get's the amount of highscores.
 int[] getMinHighscore()
          Get's the minimum highscore from the database using HighScoreDAO to access the database.
 java.lang.String getQuestions(javax.servlet.http.HttpServletRequest request)
          Creates a QuestionDAO object to get the questions from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

getQuestions

public java.lang.String getQuestions(javax.servlet.http.HttpServletRequest request)
Creates a QuestionDAO object to get the questions from the database.

Parameters:
request -
Returns:

getHighscore

public java.lang.String getHighscore(javax.servlet.http.HttpServletRequest request)
Does the businesslogic and retrival of the highscores using highscoreDAO object to access the database.

Parameters:
request -
Returns:

getMinHighscore

public int[] getMinHighscore()
Get's the minimum highscore from the database using HighScoreDAO to access the database.

Returns:

getHighscoreCount

public int getHighscoreCount()
Get's the amount of highscores.

Returns: