Package com.sap.cloud.mt.runtime
Class DataSourceLookup
java.lang.Object
com.sap.cloud.mt.runtime.DataSourceLookup
- Direct Known Subclasses:
HikariDataSourceLookup,TomcatDataSourceLookup
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataSourceLookup(InstanceLifecycleManager instanceLifecycleManager) protectedDataSourceLookup(InstanceLifecycleManager instanceLifecycleManager, boolean oneDataSourcePerDb) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDataSource(String tenantId, String dummySelectStatement) checkDataSourcePerDb(String dummySelectStatement) protected abstract voidcloseDataSource(DataSource dataSource) protected abstract DataSourcecreate(DataSourceInfo info) protected StringdetermineSqlState(Throwable exception) booleanbooleanisAuthenticationProblem(SQLException sqlException) booleanisNotAuthenticationProblem(SQLException sqlException) booleanbooleanvoidvoidreset()
-
Constructor Details
-
DataSourceLookup
protected DataSourceLookup(InstanceLifecycleManager instanceLifecycleManager, boolean oneDataSourcePerDb) -
DataSourceLookup
-
-
Method Details
-
loadOneTenantPerDb
- Throws:
InternalError
-
isNotAuthenticationProblem
-
isAuthenticationProblem
-
determineSqlState
-
reset
public void reset() -
getCachedDataSource
-
checkDataSourcePerDb
-
checkDataSource
- Throws:
SQLException
-
create
- Throws:
InternalError
-
closeDataSource
-
isOneDataSourcePerDb
public boolean isOneDataSourcePerDb() -
getDbType
-
hasDbIdentifiers
public boolean hasDbIdentifiers() -
knowsDbCredentials
public boolean knowsDbCredentials()
-