Class MultiTenantConnectionProviderImpl

java.lang.Object
com.sap.cloud.mt.orm.MultiTenantConnectionProviderImpl
All Implemented Interfaces:
Serializable, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Wrapped

public class MultiTenantConnectionProviderImpl extends Object implements org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
See Also:
  • Constructor Details

    • MultiTenantConnectionProviderImpl

      public MultiTenantConnectionProviderImpl(TenantAwareDataSource tenantAwareDataSource)
  • Method Details

    • getAnyConnection

      public Connection getAnyConnection() throws SQLException
      Specified by:
      getAnyConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
      Throws:
      SQLException
    • releaseAnyConnection

      public void releaseAnyConnection(Connection connection) throws SQLException
      Specified by:
      releaseAnyConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
      Throws:
      SQLException
    • getConnection

      public Connection getConnection(String tenantIdentifier) throws SQLException
      Specified by:
      getConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
      Throws:
      SQLException
    • releaseConnection

      public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException
      Specified by:
      releaseConnection in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
      Throws:
      SQLException
    • supportsAggressiveRelease

      public boolean supportsAggressiveRelease()
      Specified by:
      supportsAggressiveRelease in interface org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
    • isUnwrappableAs

      public boolean isUnwrappableAs(Class unwrapType)
      Specified by:
      isUnwrappableAs in interface org.hibernate.service.spi.Wrapped
    • unwrap

      public <T> T unwrap(Class<T> unwrapType)
      Specified by:
      unwrap in interface org.hibernate.service.spi.Wrapped