Class SchemalessConnectionProvider

java.lang.Object
com.sap.cds.feature.mt.lib.runtime.SchemalessConnectionProvider
All Implemented Interfaces:
ConnectionProvider

public class SchemalessConnectionProvider extends Object implements ConnectionProvider
  • Constructor Details

    • SchemalessConnectionProvider

      public SchemalessConnectionProvider()
  • Method Details

    • getConnection

      public Connection getConnection(String tenantId, DataSourceAndInfo dataSourceAndInfo, DataSourceInfo libContainerInfo) throws SQLException
      Description copied from interface: ConnectionProvider
      Request a connection for a tenant.
      Specified by:
      getConnection in interface ConnectionProvider
      Parameters:
      tenantId - Identifier of tenant for whom a connection is requested.
      dataSourceAndInfo - Connection pool instance responsible for the tenant as datasource and tenant credentials as info. In case mode combinePools is used, one connection pool per DB is created using credentials issued to a technical user. In this case the credentials used by the pool are different from the tenant-credentials provided in the info part of this parameter.
      libContainerInfo - Credentials of technical user used in mode combine pools.
      Returns:
      Throws:
      SQLException