public abstract class DataSourceLookup extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DataSourceLookup(InstanceLifecycleManager instanceLifecycleManager) |
protected |
DataSourceLookup(InstanceLifecycleManager instanceLifecycleManager,
boolean oneDataSourcePerDb) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDataSource(String tenantId,
String dummySelectStatement) |
List<HealtCheckResult> |
checkDataSourcePerDb(String dummySelectStatement) |
protected abstract void |
closeDataSource(DataSource dataSource) |
protected abstract DataSource |
create(DataSourceInfo info) |
protected String |
determineSqlState(Throwable exception) |
List<DataSourceInfo> |
getCachedDataSource() |
DbIdentifiers.DB |
getDbType() |
boolean |
hasDbIdentifiers() |
boolean |
isAuthenticationProblem(SQLException sqlException) |
boolean |
isNotAuthenticationProblem(SQLException sqlException) |
boolean |
isOneDataSourcePerDb() |
void |
loadOneTenantPerDb() |
void |
reset() |
protected DataSourceLookup(InstanceLifecycleManager instanceLifecycleManager, boolean oneDataSourcePerDb)
protected DataSourceLookup(InstanceLifecycleManager instanceLifecycleManager)
public void loadOneTenantPerDb()
throws InternalError
InternalErrorpublic boolean isNotAuthenticationProblem(SQLException sqlException)
public boolean isAuthenticationProblem(SQLException sqlException)
public void reset()
public List<DataSourceInfo> getCachedDataSource()
public List<HealtCheckResult> checkDataSourcePerDb(String dummySelectStatement)
public void checkDataSource(String tenantId, String dummySelectStatement) throws SQLException
SQLExceptionprotected abstract DataSource create(DataSourceInfo info) throws InternalError
InternalErrorprotected abstract void closeDataSource(DataSource dataSource)
public boolean isOneDataSourcePerDb()
public DbIdentifiers.DB getDbType()
public boolean hasDbIdentifiers()
Copyright © 2022 SAP. All rights reserved.