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
 java.sql.Connection getConnection()
          Gets a connection from the pool.
 void releaseConnection(java.sql.Connection pConnection)
          Gets a connection from the pool.
 

Method Detail

getConnection

java.sql.Connection getConnection()
                                  throws java.sql.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:
java.sql.SQLException - if connection is not available

releaseConnection

void releaseConnection(java.sql.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.