Interface IDatabaseViewSearcher
- All Known Implementing Classes:
DatabaseViewSearcher
public interface IDatabaseViewSearcher
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnViewByTableNameAndColumnId(DatabaseViewDto databaseView, String tableName, String columnId) getColumnViewByTableNameAndColumnName(DatabaseViewDto databaseView, String tableName, String columnName) getTableViewByTableId(DatabaseViewDto databaseView, String tableId) getTableViewByTableName(DatabaseViewDto databaseView, String tableName)
-
Method Details
-
getColumnViewByTableNameAndColumnId
ColumnViewDto getColumnViewByTableNameAndColumnId(DatabaseViewDto databaseView, String tableName, String columnId) - Parameters:
databaseView-tableName-columnId-- Returns:
- the
ColumnViewDtowith 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 aColumnViewDtowith the given columnId.
-
getColumnViewByTableNameAndColumnName
ColumnViewDto getColumnViewByTableNameAndColumnName(DatabaseViewDto databaseView, String tableName, String columnName) - Parameters:
databaseView-tableName-columnName-- Returns:
- the
ColumnViewDtowith 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 aColumnViewDtowith the given columnName.
-
getTableViewByTableId
- Parameters:
databaseView-tableId-- Returns:
- the
TableViewDtowith the given tableId from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain aTableViewDtowith the given tableId.
-
getTableViewByTableName
- Parameters:
databaseView-tableName-- Returns:
- the
TableViewDtowith the given tableName from the given databaseView. - Throws:
RuntimeException- if the given databaseView does not contain aTableViewDtowith the given tableName.
-