public class DatabaseManagerImpl extends Object implements DatabaseManager
Modifier and Type | Method and Description |
---|---|
String |
changeDBFolder()
changeDBFolder()
|
boolean |
checkDBFile()
checkDBFile()
|
Status |
close()
close()
|
void |
DatabaseManager() |
Connection |
getCon()
getCon()
|
String |
getDatabaseHost() |
static DatabaseManagerImpl |
getInstance()
getInstance()
|
Status |
init()
init()
|
void |
setDatabaseLocal() |
void |
setDatabaseRemote() |
boolean |
setMySQLparameters(String host,
String user,
String pass,
String db) |
public void DatabaseManager()
public Status init()
init
in interface DatabaseManager
public Status close()
close
in interface DatabaseManager
public static DatabaseManagerImpl getInstance()
public Connection getCon()
getCon
in interface DatabaseManager
public String changeDBFolder()
DatabaseManager
changeDBFolder
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
Copyright © 2017. All rights reserved.