org.experlog.openeas.api
Class ConnectionManager

java.lang.Object
  extended by org.experlog.openeas.api.ConnectionManager

public class ConnectionManager
extends java.lang.Object


Constructor Summary
ConnectionManager()
           
 
Method Summary
static void addDataSource(ESDataSourceWrapper esdw)
          add a datasource to the list of known datasources
static java.sql.Connection getConnection(java.lang.String datasource)
          return a connection when the datasource name is given
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManager

public ConnectionManager()
Method Detail

addDataSource

public static void addDataSource(ESDataSourceWrapper esdw)
add a datasource to the list of known datasources

Parameters:
esdw - an ESDataSourceWrapper object

getConnection

public static java.sql.Connection getConnection(java.lang.String datasource)
                                         throws java.sql.SQLException,
                                                java.lang.Exception
return a connection when the datasource name is given

Parameters:
datasource - the name of the datasource
Returns:
a connection object
Throws:
java.sql.SQLException
java.lang.Exception