public class HsqlStarter extends Object
Server
in case appNG is configured to use
DatabaseConnection.DatabaseType.HSQL
.Constructor and Description |
---|
HsqlStarter() |
Modifier and Type | Method and Description |
---|---|
static void |
shutdown(org.hsqldb.Server server)
Shuts down the given
Server , if non-null. |
static org.hsqldb.Server |
startHsql(Properties platformProperties,
String appngHome)
Starts a HSQL
Server , but only if DatabaseConnection.DatabaseType.HSQL is the configured type. |
public static final String CONTEXT
public static org.hsqldb.Server startHsql(Properties platformProperties, String appngHome) throws IOException
Server
, but only if DatabaseConnection.DatabaseType.HSQL
is the configured type.platformProperties
- the properties read from "/WEB-INF/conf/appNG.properties"appngHome
- the home folder of appNGServer
-instance, if DatabaseConnection.DatabaseType.HSQL
is the configured type.IOException
- in case the database folder or hsql logfiles could not be accessedpublic static void shutdown(org.hsqldb.Server server)
Server
, if non-null.server
- the Server
to shut down, may be null
Copyright © 2011–2017 aiticon GmbH. All rights reserved.