Interface IDatabaseInfoSearcher
- All Known Implementing Classes:
DatabaseInfoSearcher
public interface IDatabaseInfoSearcher
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnViewByTableNameAndColumnId(DatabaseInfoDto databaseView, String tableName, String columnId) getColumnViewByTableNameAndColumnName(DatabaseInfoDto databaseView, String tableName, String columnName) getTableViewByTableId(DatabaseInfoDto databaseView, String tableId) getTableViewByTableName(DatabaseInfoDto databaseView, String tableName)
-
Method Details
-
getColumnViewByTableNameAndColumnId
ColumnInfoDto getColumnViewByTableNameAndColumnId(DatabaseInfoDto databaseView, String tableName, String columnId) - Parameters:
databaseView-tableName-columnId-- Returns:
- the
ColumnInfoDtowith the given columnId from the table with the given tableName from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain a table with the given tableName, that contains aColumnInfoDtowith the given columnId.
-
getColumnViewByTableNameAndColumnName
ColumnInfoDto getColumnViewByTableNameAndColumnName(DatabaseInfoDto databaseView, String tableName, String columnName) - Parameters:
databaseView-tableName-columnName-- Returns:
- the
ColumnInfoDtowith the given columnName from the table with the given tableName from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain a table with the given tableName, that contains aColumnInfoDtowith the given columnName.
-
getTableViewByTableId
- Parameters:
databaseView-tableId-- Returns:
- the
TableInfoDtowith the given tableId from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain aTableInfoDtowith the given tableId.
-
getTableViewByTableName
- Parameters:
databaseView-tableName-- Returns:
- the
TableInfoDtowith the given tableName from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain aTableInfoDtowith the given tableName.
-