public class FileCommandDAO extends java.lang.Object implements ICommandDAO
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
pathToFileSystem |
| Constructor and Description |
|---|
FileCommandDAO()
Initialize path to persistant local file system
|
| 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 FileCommandDAO()
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 -