@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
JDBCConnectionPool
reserveConnection
in interface JDBCConnectionPool
SQLException
public void releaseConnection(Connection conn)
JDBCConnectionPool
releaseConnection
in interface JDBCConnectionPool
conn
- Connection to be releasedpublic void destroy()
JDBCConnectionPool
destroy
in interface JDBCConnectionPool
Copyright © 2020 Vaadin Ltd. All rights reserved.