tomp.ext.jdbc
Class JDBCConnection

java.lang.Object
  |
  +--tomp.ext.Base
        |
        +--tomp.ext.jdbc.JDBCConnection

public class JDBCConnection
extends Base

This is a wrapper for a JDBC Connection.

It loads the appropriate JDBC driver, logs in as a specified user (with password).

Any SQLUpdate or SQLSelectSource must use a JDBCConnection.


Field Summary
 
Fields inherited from class tomp.ext.Base
action, application, status, STATUS, STATUS_ABORTED, STATUS_IN_PROCESSING, STATUS_NOT_PROCESSED, STATUS_READY, STATUS_READY_INVALID, STATUS_READY_VALID, validator
 
Constructor Summary
JDBCConnection(Action e, java.lang.String id, Validator v, java.lang.String connectionURI, java.lang.String user, java.lang.String password, java.lang.String driverClass)
           
 
Method Summary
 java.sql.Connection asSQLConnection()
           
 void close()
          Closes the connection to the database.
 
Methods inherited from class tomp.ext.Base
abortProcessing, commitProcessing, getAsRawSource, getAsSource, id, isReady, isValid, startProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnection

public JDBCConnection(Action e,
                      java.lang.String id,
                      Validator v,
                      java.lang.String connectionURI,
                      java.lang.String user,
                      java.lang.String password,
                      java.lang.String driverClass)
               throws EXTException
Method Detail

asSQLConnection

public java.sql.Connection asSQLConnection()
Returns:
sql connection to the database

close

public void close()
           throws EXTException
Closes the connection to the database.

EXTException