net.loadbang.sql.mxj
Class NoddySQL

java.lang.Object
  extended by com.cycling74.max.MaxObject
      extended by net.loadbang.util.EnrichedMaxObject
          extended by net.loadbang.sql.mxj.MXJ_SQL
              extended by net.loadbang.sql.mxj.NoddySQL

public class NoddySQL
extends MXJ_SQL

This is a simple MXJ object which provides an SQL connection to an embedded HSQLDB database. The database is started and stopped automatically.

The database is mapped to a small number of text files. We actually locate the text files by searching for a mandatory "place-holder" file in Max's search path. This makes more sense than some property declaration somewhere.

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

Field Summary
 
Fields inherited from class com.cycling74.max.MaxObject
EMPTY_STRING_ARRAY, NO_INLETS, NO_OUTLETS
 
Constructor Summary
NoddySQL()
          A constructor which bombs out unless it's been passed the name of the place-holder file.
NoddySQL(java.lang.String placeHolder)
          Constructor.
 
Method Summary
 
Methods inherited from class net.loadbang.sql.mxj.MXJ_SQL
dropDatabase, getDatabase, notifyDeleted, query, setDatabase, update
 
Methods inherited from class net.loadbang.util.EnrichedMaxObject
getLogger
 
Methods inherited from class com.cycling74.max.MaxObject
anything, bail, bang, createInfoOutlet, dblclick, declareAttribute, declareAttribute, declareInlets, declareIO, declareOutlets, declareReadOnlyAttribute, declareReadOnlyAttribute, declareTypedIO, embedMessage, error, gc, getAttr, getAttrAtomArray, getAttrBool, getAttrBoolArray, getAttrByte, getAttrByteArray, getAttrChar, getAttrCharArray, getAttrDouble, getAttrDoubleArray, getAttrFloat, getAttrFloatArray, getAttributeInfo, getAttrInt, getAttrIntArray, getAttrLongArray, getAttrShort, getAttrShortArray, getAttrString, getAttrStringArray, getCodeSourcePath, getContext, getErrorStream, getInfoIdx, getInlet, getInletAssist, getInletType, getLongAttr, getMaxBox, getName, getNumInlets, getNumOutlets, getOutletAssist, getOutletType, getParentPatcher, getPostStream, inlet, inlet, list, loadbang, ouch, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outletBang, outletBangHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, post, postCodePath, save, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setInletAssist, setInletAssist, setName, setOutletAssist, setOutletAssist, showException, showException, toString, viewsource, zap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoddySQL

public NoddySQL()
A constructor which bombs out unless it's been passed the name of the place-holder file.


NoddySQL

public NoddySQL(java.lang.String placeHolder)
Constructor. Build a connection, using the Max search path to find a place-holder file which specifies the location of the database files to use. (Note that we implicitly do a "connect()".)

Parameters:
placeHolder - the place-holder filename for the database path to use.