footyquiz.server.integration
Class HighscoreDAO

java.lang.Object
  extended by footyquiz.server.integration.HighscoreDAO

public class HighscoreDAO
extends java.lang.Object

Stores the SQL command and the accsess to the database fot the highscore table.

Author:
Hannu Leinonen

Constructor Summary
HighscoreDAO()
           
 
Method Summary
 java.util.List<java.util.Map> getHighscoreCount()
          Gets the amount of highscores rows.
 java.util.List<java.util.Map> getHighscores()
          Gets the highscores.
 java.util.List<java.util.Map> getMinHighscore()
          Gets the samllest value in the highscore table.
 int updateScore(int id, java.lang.String username, int score)
          Updates the highscores in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighscoreDAO

public HighscoreDAO()
Method Detail

getMinHighscore

public java.util.List<java.util.Map> getMinHighscore()
Gets the samllest value in the highscore table.

Returns:

getHighscoreCount

public java.util.List<java.util.Map> getHighscoreCount()
Gets the amount of highscores rows.

Returns:

getHighscores

public java.util.List<java.util.Map> getHighscores()
Gets the highscores.

Returns:

updateScore

public int updateScore(int id,
                       java.lang.String username,
                       int score)
Updates the highscores in the database.

Parameters:
id -
username -
score -
Returns: