com.sibvisions.rad.persist.jdbc
Interface IConnectionPool

All Known Implementing Classes:
DataSourceConnectionPool

public interface IConnectionPool

The IConnectionPool is an interface to allow simple custom connection pool implementations.

See Also:
DBAccess

Method Summary
 Connection getConnection()
          Gets a connection from the pool.
 void releaseConnection(Connection pConnection)
          Gets a connection from the pool.
 

Method Detail

getConnection

Connection getConnection()
                         throws SQLException
Gets a connection from the pool. The DBAccess ensures, that the connection is released, at least on closing the DBAccess.

Returns:
the jdbc connection
Throws:
SQLException - if connection is not available

releaseConnection

void releaseConnection(Connection pConnection)
Gets a connection from the pool. The DBAccess ensures, that the connection is released, at least on closing the DBAccess.

Parameters:
pConnection - the jdbc connection


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.