public interface IMngDatabaseExt extends IMngDatabase
Database manager for file-based RDBMS (SQLite/H2). It can create and change current database (file), backup DB to global storage and restore from it, also can delete database. Additional it encrypt/decrypt all log files.
| Modifier and Type | Method and Description |
|---|---|
void |
backupDatabase(String pDbName)
Backup database.
|
void |
decryptLogs()
Decrypt log files in backup directory.
|
void |
deleteDatabase(String pDbName)
Delete database.
|
void |
encryptLogs()
Encrypt log files into backup directory.
|
String |
getBackupDir()
Getter for backupDir.
|
void |
restoreDatabase(String pDbName)
Restore database.
|
List<String> |
retrieveBackupList()
List backup databases.
|
void |
setBackupDir(String pBackupDir)
Setter for backupDir.
|
changeDatabase, createDatabase, retrieveCurrentDbName, retrieveListList<String> retrieveBackupList() throws Exception
List backup databases.
Exception - - an exceptionvoid deleteDatabase(String pDbName) throws Exception
Delete database.
pDbName - database name without extensionException - - an exceptionvoid backupDatabase(String pDbName) throws Exception
Backup database.
pDbName - database name without extensionException - - an exceptionvoid restoreDatabase(String pDbName) throws Exception
Restore database.
pDbName - database name without extensionException - - an exceptionvoid encryptLogs()
throws Exception
Encrypt log files into backup directory.
Exception - - an exceptionvoid decryptLogs()
throws Exception
Decrypt log files in backup directory.
Exception - - an exceptionString getBackupDir()
Getter for backupDir.
void setBackupDir(String pBackupDir)
Setter for backupDir.
pBackupDir - referenceCopyright © 2016–2018. All rights reserved.