Class JdbcEnvironmentInitiator.MultiTenantConnectionProviderJdbcConnectionAccess
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.MultiTenantConnectionProviderJdbcConnectionAccess
-
- All Implemented Interfaces:
Serializable,JdbcConnectionAccess
- Enclosing class:
- JdbcEnvironmentInitiator
public static class JdbcEnvironmentInitiator.MultiTenantConnectionProviderJdbcConnectionAccess extends Object implements JdbcConnectionAccess
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiTenantConnectionProviderJdbcConnectionAccess(MultiTenantConnectionProvider connectionProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTenantConnectionProvidergetConnectionProvider()ConnectionobtainConnection()Obtain a JDBC connectionvoidreleaseConnection(Connection connection)Release a previously obtained connectionbooleansupportsAggressiveRelease()Does the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?
-
-
-
Constructor Detail
-
MultiTenantConnectionProviderJdbcConnectionAccess
public MultiTenantConnectionProviderJdbcConnectionAccess(MultiTenantConnectionProvider connectionProvider)
-
-
Method Detail
-
getConnectionProvider
public MultiTenantConnectionProvider getConnectionProvider()
-
obtainConnection
public Connection obtainConnection() throws SQLException
Description copied from interface:JdbcConnectionAccessObtain a JDBC connection- Specified by:
obtainConnectionin interfaceJdbcConnectionAccess- Returns:
- The obtained connection
- Throws:
SQLException- Indicates a problem getting the connection
-
releaseConnection
public void releaseConnection(Connection connection) throws SQLException
Description copied from interface:JdbcConnectionAccessRelease a previously obtained connection- Specified by:
releaseConnectionin interfaceJdbcConnectionAccess- Parameters:
connection- The connection to release- Throws:
SQLException- Indicates a problem releasing the connection
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
Description copied from interface:JdbcConnectionAccessDoes the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?- Specified by:
supportsAggressiveReleasein interfaceJdbcConnectionAccess- Returns:
- true/false
- See Also:
ConnectionProvider.supportsAggressiveRelease(),MultiTenantConnectionProvider.supportsAggressiveRelease()
-
-