pl.kernelpanic.dbmonster.connection
Interface ConnectionProvider

All Known Implementing Classes:
DBCPConnectionProvider, SimpleConnectionProvider

public interface ConnectionProvider

This interface provides an unified access to the JDBC connections.

Version:
$Id: ConnectionProvider.html,v 1.1 2007/06/21 08:38:14 sbahloul Exp $
Author:
Piotr Maj <piotr.maj@kernelpanic.pl>

Method Summary
 Connection getConnection()
          Returns a JDBC connection.
 void shutdown()
          Shuts down the connection provider releasing all resources.
 void testConnection()
          Tests a connection.
 

Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Returns a JDBC connection.

Returns:
JDBC connection
Throws:
SQLException - if connection cannot be obtained.

testConnection

public void testConnection()
                    throws SQLException
Tests a connection.

Throws:
SQLException - if connection could not be tested.

shutdown

public void shutdown()
Shuts down the connection provider releasing all resources.



Copyright © 2003-2005 .:. kernelpanic.pl .:.. All Rights Reserved.