|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.easybeans.component.hsqldb.HSQLDBComponent
public class HSQLDBComponent
Allows to start an embedded HSQLDB server.
| 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 |
|---|
public HSQLDBComponent()
| Method Detail |
|---|
public void init()
throws EZBComponentException
init in interface EZBComponentEZBComponentException - if the initialization has failed.
public void start()
throws EZBComponentException
start in interface EZBComponentEZBComponentException - if the start has failed.public java.util.List<User> getUsers()
public void setUsers(java.util.List<User> users)
users - the list of users.
public void stop()
throws EZBComponentException
stop in interface EZBComponentEZBComponentException - if the stop is failing.public void setPortNumber(java.lang.String portNumber)
setPortNumber in interface EmbeddedDBComponentportNumber - the port number to use.public void setHostname(java.lang.String hostname)
hostname - the hostname to use.public void setDatabaseName(java.lang.String databaseName)
databaseName - the name of the database.public void setPath(java.lang.String path)
path - the path of the files for storing the database.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||