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:
-
Constructor Summary
ConstructorsConstructorDescriptionMultiTenantConnectionProviderJdbcConnectionAccess
(MultiTenantConnectionProvider<?> connectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionObtain a JDBC connectionvoid
releaseConnection
(Connection connection) Release a previously obtained connectionboolean
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 Details
-
MultiTenantConnectionProviderJdbcConnectionAccess
public MultiTenantConnectionProviderJdbcConnectionAccess(MultiTenantConnectionProvider<?> connectionProvider)
-
-
Method Details
-
getConnectionProvider
-
obtainConnection
Description copied from interface:JdbcConnectionAccess
Obtain a JDBC connection- Specified by:
obtainConnection
in interfaceJdbcConnectionAccess
- Returns:
- The obtained connection
- Throws:
SQLException
- Indicates a problem getting the connection
-
releaseConnection
Description copied from interface:JdbcConnectionAccess
Release a previously obtained connection- Specified by:
releaseConnection
in interfaceJdbcConnectionAccess
- Parameters:
connection
- The connection to release- Throws:
SQLException
- Indicates a problem releasing the connection
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()Description copied from interface:JdbcConnectionAccess
Does 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:
supportsAggressiveRelease
in interfaceJdbcConnectionAccess
- Returns:
- true/false
- See Also:
-