public class SQLCommandDAO extends java.lang.Object implements ICommandDAO
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
mysqlDb |
| Constructor and Description |
|---|
SQLCommandDAO()
Setup mysql db connection
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AddCommand(int gameID,
java.lang.String blob)
Adds a command to the DAO
|
boolean |
DeleteAllCommands()
Deletes all commands for all games
|
boolean |
DeleteCommandFor(int gameID)
Deletes all commands for a specific games
|
int |
GetCommandCountFor(int gameID)
Gets the total number of commands for
|
java.util.List<java.lang.String> |
GetCommandsFor(int gameID)
gets command blobs for a game ID
|
public java.util.List<java.lang.String> GetCommandsFor(int gameID)
GetCommandsFor in interface ICommandDAOgameID - public boolean AddCommand(int gameID,
java.lang.String blob)
AddCommand in interface ICommandDAOgameID - blob - public boolean DeleteCommandFor(int gameID)
ICommandDAODeleteCommandFor in interface ICommandDAOgameID - public boolean DeleteAllCommands()
DeleteAllCommands in interface ICommandDAOpublic int GetCommandCountFor(int gameID)
GetCommandCountFor in interface ICommandDAOgameID -