Jala 1.3

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 h2.jar in directory "lib/ext" of your helma installation for this library to work, which you can get at http://www.h2database.com/.
Defined in Database.js


Constructor Summary
jala.db.RamDatabase (<String> name, <String> username, <String> password)
            Returns a newly created RamDatabase instance.
 
Method Summary
 void copyTables(<helma.Database> database, <Array> tables)
           Copies all tables in the database passed as argument into this embedded database.
 Boolean dropTable(<String> tableName)
           Drops the table with the given name
 Boolean dump(<helma.File> file, <Object> props)
           Dumps the database schema and data into a file
 helma.Database getConnection(props)
           Returns a connection to this database
 String getName()
           Returns the name of the database
 String getPassword()
           Returns the password of this 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
 String getUsername()
           Returns the username of this database
 Boolean runScript(<helma.File> file, <Object> props, <String> charset, <Boolean> continueOnError)
           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, <String> username, <String> password)

Method Detail

copyTables

void copyTables(<helma.Database> database, <Array> tables)

dropTable

Boolean dropTable(<String> tableName)

dump

Boolean dump(<helma.File> file, <Object> props)

getConnection

helma.Database getConnection(props)

getName

String getName()

getPassword

String getPassword()

getProperties

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

getUrl

String getUrl(<Object> props)

getUsername

String getUsername()

runScript

Boolean runScript(<helma.File> file, <Object> props, <String> charset, <Boolean> continueOnError)

shutdown

void shutdown()

tableExists

Boolean tableExists(<String> name)

Jala 1.3

Documentation generated by JSDoc on Tue Jan 8 15:45:31 2008