Class DatabaseRepository
A repository for loading, saving, and removing VISAB files from VISABs database.
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public class DatabaseRepository extends RepositoryBase
Constructors
DatabaseRepository(String databasePath)
Declaration
public DatabaseRepository(String databasePath)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | databasePath |
Methods
deleteVISABFileDB(String fileName, String game)
Deletes a file from the database.
Declaration
public boolean deleteVISABFileDB(String fileName, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | fileName | The name of the file |
java.lang.String | game | The game of the file |
Returns
Type | Description |
---|---|
boolean | True if deleted |
loadBasicVISABFile(String filePath)
Loads a BasicVISABFile from a given path.
Declaration
public BasicVISABFile loadBasicVISABFile(String filePath)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | filePath | The path to the file |
Returns
Type | Description |
---|---|
BasicVISABFile | The BasicVISABFile |
loadVISABFile(String filePath, String game)
Loads a VISABFile from a given path.
Declaration
public IVISABFile loadVISABFile(String filePath, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | filePath | The path to the file |
java.lang.String | game | The game of the file |
Returns
Type | Description |
---|---|
IVISABFile | The VISABFile |
loadVISABFileDB(String fileName, String game)
Loads a VISABFile file from the database.
Declaration
public IVISABFile loadVISABFileDB(String fileName, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | fileName | The name of the file |
java.lang.String | game | The game of the file |
Returns
Type | Description |
---|---|
IVISABFile | The VISABFile |
saveFileDB(IVISABFile visabFile, String fileName)
Saves a file to the database.
Declaration
public boolean saveFileDB(IVISABFile visabFile, String fileName)
Parameters
Type | Name | Description |
---|---|---|
IVISABFile | visabFile | The file to save |
java.lang.String | fileName | The name of the file |
Returns
Type | Description |
---|---|
boolean | True if successfully saved |