org.pentaho.platform.web.hsqldb
Class HsqlDatabaseStarterBean

java.lang.Object
  extended by org.pentaho.platform.web.hsqldb.HsqlDatabaseStarterBean

public class HsqlDatabaseStarterBean
extends Object

The purpose of this Java class is to startup a HSQLDB databases. This class should not installed in production environments. This is for samples / demoing only. You typically will configure a ServletContext parameter in your web.xml, named "hsqldb-databases" with a value that follows this format: dbName@../path/to/database,@otherDbName@../path/to/other/database


Constructor Summary
HsqlDatabaseStarterBean()
           
 
Method Summary
 boolean getAllowPortFailover()
           
 Map<String,String> getDatabases()
           
 int getPort()
           
 void setAllowPortFailover(boolean value)
           
 void setDatabases(Map<String,String> databases)
           
 void setPort(int value)
           
 boolean start()
          Starts hsqldb databases.
 boolean stop()
          Stops the hsqldb databases.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsqlDatabaseStarterBean

public HsqlDatabaseStarterBean()
Method Detail

start

public boolean start()
Starts hsqldb databases.

Returns:
true if the server was started properly.

stop

public boolean stop()
Stops the hsqldb databases.

Returns:
true if the server stopped properly.

setPort

public void setPort(int value)

getPort

public int getPort()

getDatabases

public Map<String,String> getDatabases()

setDatabases

public void setDatabases(Map<String,String> databases)

setAllowPortFailover

public void setAllowPortFailover(boolean value)

getAllowPortFailover

public boolean getAllowPortFailover()