public interface DatabaseManager
Modifier and Type | Method and Description |
---|---|
boolean |
checkDBFile()
Checks for presence of database file in defined
folder and downloads it if not present
|
Status |
close()
Closes the connection to the database.
|
Connection |
getCon()
Gets the current connection to the database.
|
String |
getDatabaseHost() |
Status |
init()
Initializes the connection to the database.
|
void |
setDatabaseLocal() |
void |
setDatabaseRemote() |
String |
setDBFolder()
Allows to change the preference settings for the
database folder
|
boolean |
setMySQLparameters(String host,
String user,
String pass,
String db) |
int |
setPreferences() |
Connection getCon()
Status init()
Status close()
String setDBFolder()
boolean checkDBFile() throws IOException
IOException
- in case an exception occurs handling the file.void setDatabaseLocal()
void setDatabaseRemote()
String getDatabaseHost()
int setPreferences()
Copyright © 2019. All rights reserved.