uk.ac.manchester.gong.bong.hypersonic
Class SQLDealer

java.lang.Object
  extended by uk.ac.manchester.gong.bong.hypersonic.SQLDealer

public class SQLDealer
extends java.lang.Object

This class stores the results in an Hypersonic DB called "bong". The table name is provided by the user, it should something like "bong1"


Constructor Summary
SQLDealer(java.lang.String tablename)
           
 
Method Summary
 void connect()
           
 void createTable()
           
 void disconnect()
           
 void dropTable()
           
 void injectResult(int id, java.lang.String origin, java.lang.String relationship, java.lang.String filler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLDealer

public SQLDealer(java.lang.String tablename)
Method Detail

connect

public void connect()
             throws java.lang.ClassNotFoundException,
                    java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException

disconnect

public void disconnect()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

dropTable

public void dropTable()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

createTable

public void createTable()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

injectResult

public void injectResult(int id,
                         java.lang.String origin,
                         java.lang.String relationship,
                         java.lang.String filler)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException