|
Jala 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--jala.db.Server
Instances of this class represent a HSQLDB database server
hosting up to 10 separate databases, which are accessible via network.
Important: You need the hsqldb.jar in lib/ext
of your helma installation for this library to work, which you can get
at http://hsqldb.org/.
Defined in Database.js
| Constructor Summary | |
jala.db.Server
(<String|Number> address)
Returns a new Server instance. |
|
| Method Summary | |
void
|
addDatabase(<jala.db.RamDatabase> db, <Object> props)
Adds a database to this server. |
helma.Database
|
getConnection(<String> name, <Object> props)
Returns a connection to a database within this server. |
helma.util.ResourceProperties
|
getProperties(<String> name, <Object> props)
Returns a properties object containing the connection properties of the database with the given name. |
String
|
getUrl(<String> name, <Object> props)
Returns the JDBC Url to use for connections to the specified database. |
Boolean
|
isRunning()
Returns true if the database server is running. |
void
|
start()
Starts the database server. |
void
|
stop()
Stops the database server. |
| Constructor Detail |
jala.db.Server(<String|Number> address)
address - Either the IP address or the port number or a combination of both in the form "ip:port". By default the IP address is "127.0.0.1" (aka localhost) and the port is 9001.
| Method Detail |
void addDatabase(<jala.db.RamDatabase> db, <Object> props)
db - The database to add
props - An optional parameter object containing database properties
helma.Database getConnection(<String> name, <Object> props)
name - The name of the database running within this server
props - An optional parameter object containing connection properties to add to the connection Url.
helma.util.ResourceProperties getProperties(<String> name, <Object> props)
name - The name of the database
props - An optional parameter object containing connection properties to add to the connection Url.
String getUrl(<String> name, <Object> props)
name - An optional name of a database running
props - Optional connection properties to add
Boolean isRunning()
void start()
void stop()
|
Jala 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||