public class JdbcConnectionAccessProvidedConnectionImpl extends java.lang.Object implements JdbcConnectionAccess
Constructor and Description |
---|
JdbcConnectionAccessProvidedConnectionImpl(java.sql.Connection jdbcConnection) |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
obtainConnection()
Obtain a JDBC connection
|
void |
releaseConnection(java.sql.Connection connection)
Release a previously obtained connection
|
boolean |
supportsAggressiveRelease()
Does the underlying provider of connections support aggressive releasing of connections (and re-acquisition
of those connections later, if need be) in JTA environments?
|
public JdbcConnectionAccessProvidedConnectionImpl(java.sql.Connection jdbcConnection)
public java.sql.Connection obtainConnection() throws java.sql.SQLException
JdbcConnectionAccess
obtainConnection
in interface JdbcConnectionAccess
java.sql.SQLException
- Indicates a problem getting the connectionpublic void releaseConnection(java.sql.Connection connection) throws java.sql.SQLException
JdbcConnectionAccess
releaseConnection
in interface JdbcConnectionAccess
connection
- The connection to releasejava.sql.SQLException
- Indicates a problem releasing the connectionpublic boolean supportsAggressiveRelease()
JdbcConnectionAccess
supportsAggressiveRelease
in interface JdbcConnectionAccess
ConnectionProvider.supportsAggressiveRelease()
,
MultiTenantConnectionProvider.supportsAggressiveRelease()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.