org.ow2.easybeans.component.hsqldb
Class HSQLDBComponent

java.lang.Object
  extended by org.ow2.easybeans.component.hsqldb.HSQLDBComponent
All Implemented Interfaces:
EZBComponent, EmbeddedDBComponent

public class HSQLDBComponent
extends java.lang.Object
implements EmbeddedDBComponent

Allows to start an embedded HSQLDB server.

Author:
Florent Benoit

Constructor Summary
HSQLDBComponent()
          Default constructor.
Use default port number + hostname.
 
Method Summary
 java.util.List<User> getUsers()
          Gets the list of users.
 void init()
          Init method.
This method is called before the start method.
 void setDatabaseName(java.lang.String databaseName)
          Sets the database name.
 void setHostname(java.lang.String hostname)
          Sets the hostname.
 void setPath(java.lang.String path)
          Allows to change the path of the database files.
 void setPortNumber(java.lang.String portNumber)
          Sets the port number.
 void setUsers(java.util.List<User> users)
          Set the list of users.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSQLDBComponent

public HSQLDBComponent()
Default constructor.
Use default port number + hostname.

Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

getUsers

public java.util.List<User> getUsers()
Gets the list of users.

Returns:
the list of users.

setUsers

public void setUsers(java.util.List<User> users)
Set the list of users.

Parameters:
users - the list of users.

stop

public void stop()
          throws EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - if the stop is failing.

setPortNumber

public void setPortNumber(java.lang.String portNumber)
Sets the port number.

Specified by:
setPortNumber in interface EmbeddedDBComponent
Parameters:
portNumber - the port number to use.

setHostname

public void setHostname(java.lang.String hostname)
Sets the hostname.

Parameters:
hostname - the hostname to use.

setDatabaseName

public void setDatabaseName(java.lang.String databaseName)
Sets the database name.

Parameters:
databaseName - the name of the database.

setPath

public void setPath(java.lang.String path)
Allows to change the path of the database files.

Parameters:
path - the path of the files for storing the database.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.