net.loadbang.sql
Class Derby_DB

java.lang.Object
  extended by net.loadbang.sql.Database
      extended by net.loadbang.sql.Derby_DB

public class Derby_DB
extends Database

This is an encapsulated database connection to a Derby DB located in the Max/MSP search path. (See HSQL_DB for more information.)

Author:
Nick Rothwell, nick@cassiel.com / nick@loadbang.net

Nested Class Summary
 
Nested classes/interfaces inherited from class net.loadbang.sql.Database
Database.ConnectionCallback<T>
 
Constructor Summary
Derby_DB(java.lang.String placeHolder, boolean singleConnection)
          Constructor: create a Derby database in a location specified by the place-holder.
 
Method Summary
 
Methods inherited from class net.loadbang.sql.Database
close, open, query, update, withConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Derby_DB

public Derby_DB(java.lang.String placeHolder,
                boolean singleConnection)
         throws SetupException
Constructor: create a Derby database in a location specified by the place-holder.

Parameters:
placeHolder - the name of the place-holder file (without the hard-wired .PLACE_HOLDER suffix)
Throws:
SetupException - if the place-holder filename cannot be found, or if there is some other problem establishing the database connection