@Deprecated public class J2EEConnectionPool extends Object implements JDBCConnectionPool
| Constructor and Description |
|---|
J2EEConnectionPool(DataSource dataSource)
Deprecated.
|
J2EEConnectionPool(String dataSourceJndiName)
Deprecated.
|
| Modifier and Type | Method and 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.
|
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 © 2019 Vaadin Ltd. All rights reserved.