Interface DBManager
- 
- All Known Implementing Classes:
- HsqlDbManager,- SQLiteDBManager
 
 public interface DBManagerThe interface for the internal database.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilebackupDatabase(java.io.File targetFolder, java.lang.String baseFilename)Creates a single-file backup of the internal db in the specified folder.TablecreateTable()longgetDatabaseSize()javax.sql.DataSourcegetDataSource()SDrivergetDriver()Returns the driver for the DBManager.InternalDBFlavorgetFlavor()booleanisNewDatabase()booleanisRunning()voidrestoreFromDBBackup(java.io.File tempFile)voidsetAutoBackupCount(int autoBackupCount)voidsetAutoBackupDelay(int autoBackupDelay)voidsetAutoBackupsEnabled(boolean b)voidsetDefragDelay(int defragFreqMin)voidsetFaultCount(int faultCount)voidshutdown(boolean compact)voidstartup()
 
- 
- 
- 
Method Detail- 
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) 
 - 
getDataSourcejavax.sql.DataSource getDataSource() 
 - 
getDatabaseSizelong getDatabaseSize() 
 - 
restoreFromDBBackupvoid restoreFromDBBackup(java.io.File tempFile) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
backupDatabasejava.io.File backupDatabase(java.io.File targetFolder, java.lang.String baseFilename) throws java.io.IOExceptionCreates 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:
- java.io.IOException
 
 - 
startupvoid startup() throws DBStartupException- 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() 
 
- 
 
-