public class DatabaseManagerImpl extends Object implements DatabaseManager
Modifier and Type | Method and Description |
---|---|
boolean |
checkDBFile()
checkDBFile()
|
Status |
close()
close()
|
Connection |
getCon()
getCon()
|
String |
getDatabaseHost() |
static DatabaseManagerImpl |
getInstance()
Singleton implementation of the database class.
|
Status |
init()
init()
|
void |
setDatabaseLocal() |
void |
setDatabaseRemote() |
String |
setDBFolder()
changeDBFolder()
|
boolean |
setMySQLparameters(String host,
String user,
String pass,
String db) |
public static DatabaseManagerImpl getInstance()
public Status init()
init
in interface DatabaseManager
public Status close()
close
in interface DatabaseManager
public Connection getCon()
getCon
in interface DatabaseManager
public boolean checkDBFile() throws IOException
DatabaseManager
checkDBFile
in interface DatabaseManager
IOException
public void setDatabaseLocal()
setDatabaseLocal
in interface DatabaseManager
public void setDatabaseRemote()
setDatabaseRemote
in interface DatabaseManager
public String getDatabaseHost()
getDatabaseHost
in interface DatabaseManager
public boolean setMySQLparameters(String host, String user, String pass, String db)
setMySQLparameters
in interface DatabaseManager
public String setDBFolder()
DatabaseManager
setDBFolder
in interface DatabaseManager
Copyright © 2018. All rights reserved.