uk.org.ogsadai.dataresource.conx
Interface JDBCConnectionManager

All Known Implementing Classes:
SimpleJDBCConnectionManager

public interface JDBCConnectionManager

This is an interface that defines a class to represent a JDBC data resource and provide access to that resource.


Method Summary
 java.sql.Connection getConnection(java.lang.String credentials)
          Responds with a connection to the database
 java.lang.String getDriverClass()
          Returns the driver class of the ConnectionManager In certain circumstances hacks are and may be required based upon the driver used.
 void returnConnection(java.sql.Connection con)
          Returns a connection Allows pooling of connections or could simple just result in connection being closed
 

Method Detail

getConnection

public java.sql.Connection getConnection(java.lang.String credentials)
                                  throws CoreSystemException,
                                         CoreUserException,
                                         AuthorisationException
Responds with a connection to the database

CoreSystemException
CoreUserException
AuthorisationException

returnConnection

public void returnConnection(java.sql.Connection con)
                      throws CoreSystemException
Returns a connection Allows pooling of connections or could simple just result in connection being closed

CoreSystemException

getDriverClass

public java.lang.String getDriverClass()
Returns the driver class of the ConnectionManager In certain circumstances hacks are and may be required based upon the driver used. This method allows an activity to access the driver class name