Interface JDBCConnectionPool
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
J2EEConnectionPool
,SimpleJDBCConnectionPool
@Deprecated public interface JDBCConnectionPool extends Serializable
Deprecated.As of 8.0, no replacement available.Interface for implementing connection pools to be used with SQLContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
destroy()
Deprecated.Destroys the connection pool: close() is called an all the connections in the pool, whether available or reserved.void
releaseConnection(Connection conn)
Deprecated.Releases a connection that was retrieved earlier.Connection
reserveConnection()
Deprecated.Retrieves a connection.
-
-
-
Method Detail
-
reserveConnection
Connection reserveConnection() throws SQLException
Deprecated.Retrieves a connection.- Returns:
- a usable connection to the database
- Throws:
SQLException
-
releaseConnection
void releaseConnection(Connection conn)
Deprecated.Releases a connection that was retrieved earlier. Note that depending on implementation, the transaction possibly open in the connection may or may not be rolled back.- Parameters:
conn
- Connection to be released
-
destroy
void destroy()
Deprecated.Destroys the connection pool: close() is called an all the connections in the pool, whether available or reserved. This method was added to fix PostgreSQL -related issues with connections that were left hanging 'idle'.
-
-