Interface IDatabaseViewSearcher

All Known Implementing Classes:
DatabaseViewSearcher

public interface IDatabaseViewSearcher
Author:
Silvan Wyss
  • Method Details

    • getColumnViewByTableNameAndColumnId

      ColumnViewDto getColumnViewByTableNameAndColumnId(DatabaseViewDto databaseView, String tableName, String columnId)
      Parameters:
      databaseView -
      tableName -
      columnId -
      Returns:
      the ColumnViewDto with 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 a ColumnViewDto with the given columnId.
    • getColumnViewByTableNameAndColumnName

      ColumnViewDto getColumnViewByTableNameAndColumnName(DatabaseViewDto databaseView, String tableName, String columnName)
      Parameters:
      databaseView -
      tableName -
      columnName -
      Returns:
      the ColumnViewDto with 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 a ColumnViewDto with the given columnName.
    • getTableViewByTableId

      TableViewDto getTableViewByTableId(DatabaseViewDto databaseView, String tableId)
      Parameters:
      databaseView -
      tableId -
      Returns:
      the TableViewDto with the given tableId from the given databaseView.
      Throws:
      RuntimeException - if the given databaseView does not contain a TableViewDto with the given tableId.
    • getTableViewByTableName

      TableViewDto getTableViewByTableName(DatabaseViewDto databaseView, String tableName)
      Parameters:
      databaseView -
      tableName -
      Returns:
      the TableViewDto with the given tableName from the given databaseView.
      Throws:
      RuntimeException - if the given databaseView does not contain a TableViewDto with the given tableName.