Class DataSourceLookup

java.lang.Object
com.sap.cloud.mt.runtime.DataSourceLookup
Direct Known Subclasses:
HikariDataSourceLookup, TomcatDataSourceLookup

public abstract class DataSourceLookup extends Object
  • Constructor Details

  • Method Details

    • loadOneTenantPerDb

      public void loadOneTenantPerDb() throws InternalError
      Throws:
      InternalError
    • isNotAuthenticationProblem

      public boolean isNotAuthenticationProblem(SQLException sqlException)
    • isAuthenticationProblem

      public boolean isAuthenticationProblem(SQLException sqlException)
    • determineSqlState

      protected String determineSqlState(Throwable exception)
    • reset

      public void reset()
    • getCachedDataSource

      public List<DataSourceInfo> getCachedDataSource()
    • checkDataSourcePerDb

      public List<HealtCheckResult> checkDataSourcePerDb(String dummySelectStatement)
    • checkDataSource

      public void checkDataSource(String tenantId, String dummySelectStatement) throws SQLException
      Throws:
      SQLException
    • create

      protected abstract DataSource create(DataSourceInfo info) throws InternalError
      Throws:
      InternalError
    • closeDataSource

      protected abstract void closeDataSource(DataSource dataSource)
    • isOneDataSourcePerDb

      public boolean isOneDataSourcePerDb()
    • getDbType

      public DbIdentifiers.DB getDbType()
    • hasDbIdentifiers

      public boolean hasDbIdentifiers()
    • knowsDbCredentials

      public boolean knowsDbCredentials()