public class J2EEConnectionPool extends Object implements JDBCConnectionPool
| Constructor and Description |
|---|
J2EEConnectionPool(DataSource dataSource) |
J2EEConnectionPool(String dataSourceJndiName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public J2EEConnectionPool(DataSource dataSource)
public J2EEConnectionPool(String dataSourceJndiName)
public Connection reserveConnection() throws SQLException
JDBCConnectionPoolreserveConnection in interface JDBCConnectionPoolSQLExceptionpublic void releaseConnection(Connection conn)
JDBCConnectionPoolreleaseConnection in interface JDBCConnectionPoolconn - Connection to be releasedpublic void destroy()
JDBCConnectionPooldestroy in interface JDBCConnectionPoolCopyright © 2016 Vaadin Ltd. All rights reserved.