public class ConfigurableHSQLDBserver extends Object
Constructor and Description |
---|
ConfigurableHSQLDBserver() |
Modifier and Type | Method and Description |
---|---|
static void |
initInFileSystem(String databaseName,
boolean showLog,
String directory)
Initialize the server using a persistent data base in the file system
This persistent data base contains HSQLDB MEMORY tables.
|
static void |
initInMemory(String databaseName,
boolean showLog)
Initialize the server using a non persistent data base in memory
|
static void |
loadSQLFile(String sqlfile)
Loads the given sql file.
|
static void |
main(String[] args)
Testing method
|
static void |
shutDown()
Shutdown the server
|
public ConfigurableHSQLDBserver()
public static void initInMemory(String databaseName, boolean showLog)
databaseName
- is the name of the data baseshowLog
- indicates if log comments must be shownpublic static void initInFileSystem(String databaseName, boolean showLog, String directory)
This persistent data base contains HSQLDB MEMORY tables.
Memory tables are the default type when the CREATE TABLE command is used.
Their data is held entirely in memory but any change to their structure or contents is written to the
More info: http://hsqldb.org/doc/guide/ch01.html
databaseName
- is the name of the data baseshowLog
- indicates if log comments must be showndirectory
- where the data base must be created or loaded from. This directory must exist.public static void loadSQLFile(String sqlfile)
sqlfile
- to be loadedpublic static void shutDown()
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.