|
Jala 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--jala.db.RamDatabase
Instances of this class represent an in-memory sql database.
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.RamDatabase
(<String> name)
Returns a newly created RamDatabase instance. |
|
| Method Summary | |
void
|
copyTables(<helma.Database> database)
Copies all tables in the database passed as argument into this embedded database. |
Boolean
|
dropTable(<String> tableName)
Drops the table with the given name |
helma.Database
|
getConnection(props)
Returns a connection to this database |
String
|
getName()
Returns the name of the database |
helma.util.ResourceProperties
|
getProperties(<Object> props)
Returns a properties object containing the connection properties for this database. |
String
|
getUrl(<Object> props)
Returns the JDBC Url to connect to this database |
Object
|
runScript(<helma.File> file)
Runs the script file passed as argument in the context of this database. |
void
|
shutdown()
Stops this in-process database by issueing a "SHUTDOWN" sql command. |
Boolean
|
tableExists(<String> name)
Returns true if the table exists already in the database |
| Constructor Detail |
jala.db.RamDatabase(<String> name)
name - The name of the database
| Method Detail |
void copyTables(<helma.Database> database)
database - The database to copy the tables from
Boolean dropTable(<String> tableName)
tableName - The name of the table
helma.Database getConnection(props)
An - optional parameter object containing connection properties to add to the connection Url.
String getName()
helma.util.ResourceProperties getProperties(<Object> props)
props - An optional parameter object containing connection properties to add to the connection Url.
String getUrl(<Object> props)
props - Optional connection properties to add
Object runScript(<helma.File> file)
file - The script file to run.
void shutdown()
Boolean tableExists(<String> name)
name - The name of the table
|
Jala 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||