Interface ITableValidator

All Known Implementing Classes:
TableValidator

public interface ITableValidator
Author:
Silvan Wyss
  • Method Details

    • assertContainsColumn

      void assertContainsColumn(ITable table, IColumn column)
      Parameters:
      table -
      column -
      Throws:
      RuntimeException - if the given table does not contain the given column.
    • assertDoesNotBelongToDatabase

      void assertDoesNotBelongToDatabase(ITable table)
      Parameters:
      table -
      Throws:
      RuntimeException - if the given table does not belong to a IDatabase.
    • assertDoesNotContainColumn

      void assertDoesNotContainColumn(ITable table, IColumn column)
      Parameters:
      table -
      column -
      Throws:
      RuntimeException - if the given table contains the given column.
    • assertDoesNotContainColumnWithName

      void assertDoesNotContainColumnWithName(ITable table, String name)
      Parameters:
      table -
      name -
      Throws:
      RuntimeException - if the given table a IColumn with the given name.
    • assertIsNotReferenced

      void assertIsNotReferenced(ITable table)
      Parameters:
      table -
      Throws:
      RuntimeException - if the given table is referenced.