Class TableExaminer

java.lang.Object
ch.nolix.system.objectschema.modelexaminer.TableExaminer
All Implemented Interfaces:
ITableExaminer

public final class TableExaminer extends Object implements ITableExaminer
Author:
Silvan Wyss
  • Constructor Details

    • TableExaminer

      public TableExaminer()
  • Method Details

    • containsColumn

      public boolean containsColumn(ITable table, IColumn column)
      Specified by:
      containsColumn in interface ITableExaminer
      Parameters:
      table -
      column -
      Returns:
      true if the given table contains the given column, false otherwise.
    • containsColumnThatIsBackReferencedByColumn

      public boolean containsColumnThatIsBackReferencedByColumn(ITable table, IColumn column)
      Specified by:
      containsColumnThatIsBackReferencedByColumn in interface ITableExaminer
      Parameters:
      table -
      column -
      Returns:
      true if the given table contains a IColumn that is back referenced by the given column, false otherwise.
    • containsColumnThatReferencesBackColumn

      public boolean containsColumnThatReferencesBackColumn(ITable table, IColumn column)
      Specified by:
      containsColumnThatReferencesBackColumn in interface ITableExaminer
      Parameters:
      table -
      column -
      Returns:
      true if the given table contains a IColumn that referenced back the given column, false otherwise.
    • containsColumnThatReferencesTable

      public boolean containsColumnThatReferencesTable(ITable table, ITable otherTable)
      Specified by:
      containsColumnThatReferencesTable in interface ITableExaminer
      Parameters:
      table -
      otherTable -
      Returns:
      true if the given table contains a IColumn that references the given otherTable, false otherwise.
    • containsColumnWithName

      public boolean containsColumnWithName(ITable table, String name)
      Specified by:
      containsColumnWithName in interface ITableExaminer
      Parameters:
      table -
      name -
      Returns:
      if the given table contains a IColumn with the given name, false otherwise.
    • isReferenced

      public boolean isReferenced(ITable table)
      Specified by:
      isReferenced in interface ITableExaminer
      Parameters:
      table -
      Returns:
      true if the given table is referenced, false otherwise.