Interface DBManager
- All Known Implementing Classes:
HsqlDbManager, SQLiteDBManager
public interface DBManager
The interface for the internal database.
-
Method Summary
Modifier and TypeMethodDescriptionbackupDatabase(File targetFolder, String baseFilename) Creates a single-file backup of the internal db in the specified folder.booleanbooleanvoidrestoreFromDBBackup(File tempFile) voidsetAutoBackupCount(int autoBackupCount) voidsetAutoBackupDelay(int autoBackupDelay) voidsetAutoBackupsEnabled(boolean b) voidsetDefragDelay(int defragFreqMin) voidsetFaultCount(int faultCount) voidshutdown(boolean compact) voidstartup()
-
Method Details
-
setAutoBackupCount
void setAutoBackupCount(int autoBackupCount) -
setAutoBackupDelay
void setAutoBackupDelay(int autoBackupDelay) -
setFaultCount
void setFaultCount(int faultCount) -
setAutoBackupsEnabled
void setAutoBackupsEnabled(boolean b) -
setDefragDelay
void setDefragDelay(int defragFreqMin) -
isNewDatabase
boolean isNewDatabase() -
isRunning
boolean isRunning() -
shutdown
void shutdown(boolean compact) -
getDataSource
DataSource getDataSource() -
restoreFromDBBackup
- Throws:
IOException
-
backupDatabase
Creates a single-file backup of the internal db in the specified folder. The full path to the backup is returned. The filename should start with the base, but should then be identifiable by the specific db system.- Throws:
IOException
-
startup
- Throws:
DBStartupException
-
createTable
Table createTable() -
getFlavor
InternalDBFlavor getFlavor()
-