Jala 1.2

Class jala.db.RamDatabase

Object
   |
   +--jala.db.RamDatabase
Direct Known Subclasses:
jala.db.FileDatabase

class 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

jala.db.RamDatabase(<String> name)

Method Detail

copyTables

void copyTables(<helma.Database> database)

dropTable

Boolean dropTable(<String> tableName)

getConnection

helma.Database getConnection(props)

getName

String getName()

getProperties

helma.util.ResourceProperties getProperties(<Object> props)

getUrl

String getUrl(<Object> props)

runScript

Object runScript(<helma.File> file)

shutdown

void shutdown()

tableExists

Boolean tableExists(<String> name)

Jala 1.2

Documentation generated by JSDoc on Tue May 29 10:26:15 2007