|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfootyquiz.server.integration.HighscoreDAO
public class HighscoreDAO
Stores the SQL command and the accsess to the database fot the highscore table.
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 |
---|
public HighscoreDAO()
Method Detail |
---|
public java.util.List<java.util.Map> getMinHighscore()
public java.util.List<java.util.Map> getHighscoreCount()
public java.util.List<java.util.Map> getHighscores()
public int updateScore(int id, java.lang.String username, int score)
id
- username
- score
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |