public static class JdbcEnvironmentInitiator.MultiTenantConnectionProviderJdbcConnectionAccess extends Object implements JdbcConnectionAccess
Constructor and Description |
---|
MultiTenantConnectionProviderJdbcConnectionAccess(MultiTenantConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
MultiTenantConnectionProvider |
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 MultiTenantConnectionProviderJdbcConnectionAccess(MultiTenantConnectionProvider connectionProvider)
public MultiTenantConnectionProvider 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.