Class J2EEConnectionPool
- java.lang.Object
-
- com.vaadin.v7.data.util.sqlcontainer.connection.J2EEConnectionPool
-
- All Implemented Interfaces:
JDBCConnectionPool,Serializable
@Deprecated public class J2EEConnectionPool extends Object implements JDBCConnectionPool
Deprecated.As of 8.0, no replacement available.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description J2EEConnectionPool(String dataSourceJndiName)Deprecated.J2EEConnectionPool(DataSource dataSource)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()Deprecated.Destroys the connection pool: close() is called an all the connections in the pool, whether available or reserved.voidreleaseConnection(Connection conn)Deprecated.Releases a connection that was retrieved earlier.ConnectionreserveConnection()Deprecated.Retrieves a connection.
-
-
-
Constructor Detail
-
J2EEConnectionPool
public J2EEConnectionPool(DataSource dataSource)
Deprecated.
-
J2EEConnectionPool
public J2EEConnectionPool(String dataSourceJndiName)
Deprecated.
-
-
Method Detail
-
reserveConnection
public Connection reserveConnection() throws SQLException
Deprecated.Description copied from interface:JDBCConnectionPoolRetrieves a connection.- Specified by:
reserveConnectionin interfaceJDBCConnectionPool- Returns:
- a usable connection to the database
- Throws:
SQLException
-
releaseConnection
public void releaseConnection(Connection conn)
Deprecated.Description copied from interface:JDBCConnectionPoolReleases 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.- Specified by:
releaseConnectionin interfaceJDBCConnectionPool- Parameters:
conn- Connection to be released
-
destroy
public void destroy()
Deprecated.Description copied from interface:JDBCConnectionPoolDestroys 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'.- Specified by:
destroyin interfaceJDBCConnectionPool
-
-