Class HanaConnectionProvider
java.lang.Object
com.sap.cds.feature.mt.lib.runtime.HanaConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String tenantId, DataSourceAndInfo dataSourceAndInfo, DataSourceInfo libContainerInfo) Request a connection for a tenant.
-
Constructor Details
-
HanaConnectionProvider
public HanaConnectionProvider()
-
-
Method Details
-
getConnection
public Connection getConnection(String tenantId, DataSourceAndInfo dataSourceAndInfo, DataSourceInfo libContainerInfo) throws SQLException Description copied from interface:ConnectionProviderRequest a connection for a tenant.- Specified by:
getConnectionin interfaceConnectionProvider- 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
-