|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecttetrisServer.dao.DaoPlayer
public class DaoPlayer
Klasse die de database van een speler beheert.
| Constructor Summary | |
|---|---|
DaoPlayer()
Creates a new instance of DaoPlayer |
|
| Method Summary | |
|---|---|
static DaoPlayer |
getInstance()
Methode om de instance terug te geven. |
int |
getPlayerID(java.lang.String username,
java.lang.String password)
Methode die de PlayerID teruggeeft in een string. |
java.util.Vector<Player> |
getPlayers()
Methode die de players teruggeeft. |
void |
updatePlayerData(Player p)
Methode die de data van een speler update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaoPlayer()
| Method Detail |
|---|
public static DaoPlayer getInstance()
public java.util.Vector<Player> getPlayers()
throws java.sql.SQLException
java.sql.SQLException - errroafhandeling
public int getPlayerID(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
username - usernamepassword - password
java.sql.SQLException - errorafhandeling
public void updatePlayerData(Player p)
throws java.sql.SQLException
p - player
java.sql.SQLException - errorafhandeling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||