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 DatabaseManagerpublic Status close()
close in interface DatabaseManagerpublic static DatabaseManagerImpl getInstance()
public Connection getCon()
getCon in interface DatabaseManagerpublic String changeDBFolder()
DatabaseManagerchangeDBFolder in interface DatabaseManagerpublic boolean checkDBFile()
throws IOException
DatabaseManagercheckDBFile in interface DatabaseManagerIOExceptionpublic void setDatabaseLocal()
setDatabaseLocal in interface DatabaseManagerpublic void setDatabaseRemote()
setDatabaseRemote in interface DatabaseManagerpublic String getDatabaseHost()
getDatabaseHost in interface DatabaseManagerpublic boolean setMySQLparameters(String host, String user, String pass, String db)
setMySQLparameters in interface DatabaseManagerCopyright © 2017. All rights reserved.