Class DataSourceLookup
java.lang.Object
com.sap.cds.feature.mt.lib.runtime.DataSourceLookup
- Direct Known Subclasses:
HikariDataSourceLookup,TomcatDataSourceLookup
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataSourceLookup(InstanceLifecycleManager instanceLifecycleManager) protectedDataSourceLookup(InstanceLifecycleManager instanceLifecycleManager, boolean combinePools) -
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) booleanbooleanisNotAuthenticationProblem(SQLException sqlException) poolMode()voidreset()
-
Constructor Details
-
DataSourceLookup
-
DataSourceLookup
-
-
Method Details
-
isNotAuthenticationProblem
-
isAuthenticationProblem
-
determineSqlState
-
reset
public void reset() -
getCachedDataSource
-
checkDataSourcePerDb
-
checkDataSource
- Throws:
SQLException
-
create
- Throws:
InternalError
-
closeDataSource
-
isCombinePools
public boolean isCombinePools() -
poolMode
-
getDbType
-
healthCheckPossible
public boolean healthCheckPossible()
-