Interface DBManager
- All Known Implementing Classes:
- HsqlDbManager,- SQLiteDBManager
public interface DBManager
The interface for the internal database.
- 
Method SummaryModifier and TypeMethodDescriptionbackupDatabase(File targetFolder, String baseFilename) Creates a single-file backup of the internal db in the specified folder.longReturns the driver for the DBManager.booleanbooleanvoidrestoreFromDBBackup(File tempFile) voidsetAutoBackupCount(int autoBackupCount) voidsetAutoBackupDelay(int autoBackupDelay) voidsetAutoBackupsEnabled(boolean b) voidsetDefragDelay(int defragFreqMin) voidsetFaultCount(int faultCount) voidshutdown(boolean compact) voidstartup()
- 
Method Details- 
setAutoBackupCountvoid setAutoBackupCount(int autoBackupCount) 
- 
setAutoBackupDelayvoid setAutoBackupDelay(int autoBackupDelay) 
- 
setFaultCountvoid setFaultCount(int faultCount) 
- 
setAutoBackupsEnabledvoid setAutoBackupsEnabled(boolean b) 
- 
setDefragDelayvoid setDefragDelay(int defragFreqMin) 
- 
isNewDatabaseboolean isNewDatabase()
- 
isRunningboolean isRunning()
- 
shutdownvoid shutdown(boolean compact) 
- 
getDataSourceDataSource getDataSource()
- 
getDatabaseSizelong getDatabaseSize()
- 
restoreFromDBBackup- Throws:
- IOException
 
- 
backupDatabaseCreates 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
 
- 
getDriverSDriver getDriver()Returns the driver for the DBManager. Important: the driver holds a session, so a new instance should be created each time.
- 
createTableTable createTable()
- 
getFlavorInternalDBFlavor getFlavor()
 
-