public class HsqldbDatabase extends SqlDatabase
logger
DB_TYPE_HSQLDB
Constructor and Description |
---|
HsqldbDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean compact,
boolean cleanup)
Closes the database.
|
protected SqlDatabaseServer |
createDatabaseServer(String path)
Creates the
SqlDatabaseServer to be used when opening a database. |
void |
deleteSession(String sessionName)
Permanently delete the specified session
|
boolean |
isFileBased() |
discardSession, getDatabaseServer, getTableAlert, getTableContext, getTableHistory, getTableParam, getTableScan, getTableSession, getTableSessionUrl, getTableStructure, getTableTag, getType, open, setDatabaseServer, setTableAlert, setTableScan, setTableSessionUrl, setTableTag
addDatabaseListener, close, getDatabaseListeners, notifyListenersDatabaseOpen, notifyListenersDatabaseOpen, removeDatabaseListener, removeDatabaseListeners
public void deleteSession(String sessionName)
Database
deleteSession
in interface Database
deleteSession
in class SqlDatabase
protected SqlDatabaseServer createDatabaseServer(String path) throws Exception
SqlDatabase
SqlDatabaseServer
to be used when opening a database.
Extending classes can use this method to create a custom SqlDatabaseServer
implementation.
createDatabaseServer
in class SqlDatabase
path
- the location of the database serverSqlDatabaseServer
to be used by this databaseException
- if an error occurred while creating the SqlDatabaseServer
.SqlDatabase.open(String)
public void close(boolean compact, boolean cleanup)
AbstractDatabase
compact
is true
,
the database will be compacted, compacting the database ensures a minimal
space disk usage but it will also take longer to close. If the parameter
cleanup
is true
any necessary cleanups are performed
prior to closing the database (the cleanup removes the temporary
HistoryRefernece
s.)
Also, removes the database listeners added previously.
close
in interface Database
close
in class SqlDatabase
compact
- true
if the database should be compacted,
false
otherwise.cleanup
- true
if any necessary cleanups should be performed,
false
otherwise.HistoryReference
public boolean isFileBased()
isFileBased
in class SqlDatabase