public static class JdbcEnvironmentInitiator.ConnectionProviderJdbcConnectionAccess extends Object implements JdbcConnectionAccess
Constructor and Description |
---|
ConnectionProviderJdbcConnectionAccess(ConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
ConnectionProvider |
getConnectionProvider() |
Connection |
obtainConnection()
Obtain a JDBC connection
|
void |
releaseConnection(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 ConnectionProviderJdbcConnectionAccess(ConnectionProvider connectionProvider)
public ConnectionProvider getConnectionProvider()
public Connection obtainConnection() throws SQLException
JdbcConnectionAccess
obtainConnection
in interface JdbcConnectionAccess
SQLException
- Indicates a problem getting the connectionpublic void releaseConnection(Connection connection) throws SQLException
JdbcConnectionAccess
releaseConnection
in interface JdbcConnectionAccess
connection
- The connection to releaseSQLException
- Indicates a problem releasing the connectionpublic boolean supportsAggressiveRelease()
JdbcConnectionAccess
supportsAggressiveRelease
in interface JdbcConnectionAccess
ConnectionProvider.supportsAggressiveRelease()
,
MultiTenantConnectionProvider.supportsAggressiveRelease()
Copyright © 2017 JBoss by Red Hat. All rights reserved.