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 ICommandDAO
gameID
- public boolean AddCommand(int gameID, java.lang.String blob)
AddCommand
in interface ICommandDAO
gameID
- blob
- public boolean DeleteCommandFor(int gameID)
ICommandDAO
DeleteCommandFor
in interface ICommandDAO
gameID
- public boolean DeleteAllCommands()
DeleteAllCommands
in interface ICommandDAO
public int GetCommandCountFor(int gameID)
GetCommandCountFor
in interface ICommandDAO
gameID
-