We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.util.sqlcontainer.connection.
Interface JDBCConnectionPool
All Superinterfaces:
All Known Implementing Classes:
- extends Serializable
public interface JDBCConnectionPool
Interface for implementing connection pools to be used with SQLContainer.
Method Summary | |
---|---|
void |
destroy()
Destroys the connection pool: close() is called an all the connections in the pool, whether available or reserved. |
void |
releaseConnection(Connection conn)
Releases a connection that was retrieved earlier. |
Connection |
reserveConnection()
Retrieves a connection. |
Method Detail |
---|
reserveConnection
Connection reserveConnection()
throws SQLException
- Returns:
- a usable connection to the database
- Throws:
SQLException
Retrieves a connection.
releaseConnection
void releaseConnection(Connection conn)
- Parameters:
conn
- Connection to be released
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.
destroy
void destroy()
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'.