public class MultiTenantSchemaConnectionProvider extends Object implements org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider, org.hibernate.service.spi.ServiceRegistryAwareService
| Constructor and Description |
|---|
MultiTenantSchemaConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getAnyConnection() |
Connection |
getConnection(String tenantId) |
void |
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) |
boolean |
isUnwrappableAs(Class unwrapType) |
void |
releaseAnyConnection(Connection connection) |
void |
releaseConnection(String tenantId,
Connection connection) |
boolean |
supportsAggressiveRelease() |
<T> T |
unwrap(Class<T> unwrapType) |
public Connection getAnyConnection() throws SQLException
getAnyConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProviderSQLExceptionpublic void releaseAnyConnection(Connection connection) throws SQLException
releaseAnyConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProviderSQLExceptionpublic Connection getConnection(String tenantId) throws SQLException
getConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProviderSQLExceptionpublic void releaseConnection(String tenantId, Connection connection) throws SQLException
releaseConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProviderSQLExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProviderpublic boolean isUnwrappableAs(Class unwrapType)
isUnwrappableAs in interface org.hibernate.service.spi.Wrappedpublic <T> T unwrap(Class<T> unwrapType)
unwrap in interface org.hibernate.service.spi.Wrappedpublic void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareServiceCopyright © 2015–2016 eGovernments Foundation. All rights reserved.