net.sf.taverna.t2.provenance.connector
Class JDBCConnector

java.lang.Object
  extended by net.sf.taverna.t2.provenance.connector.JDBCConnector

public class JDBCConnector
extends java.lang.Object

A shared factory class for retrieving a connection to the database. The client is responsible for closing the connection once its finished with. The connection needs to be configured externally using a JNDI data source named "jdbc/taverna"

Author:
Stuart Owen

Constructor Summary
JDBCConnector()
           
 
Method Summary
static java.sql.Connection getConnection()
          Provides a connection to a database, that has been defined externally as a JNDI DataSource with the name 'jdbc/taverna' The client is responsible for closing the connection once finished with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnector

public JDBCConnector()
Method Detail

getConnection

public static java.sql.Connection getConnection()
                                         throws java.lang.InstantiationException,
                                                java.lang.IllegalAccessException,
                                                java.lang.ClassNotFoundException,
                                                java.sql.SQLException
Provides a connection to a database, that has been defined externally as a JNDI DataSource with the name 'jdbc/taverna' The client is responsible for closing the connection once finished with.

Returns:
a connection to the database
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.sql.SQLException