Class TTableList

All Implemented Interfaces:
Visitable, Iterable<TTable>, Iterator<TSourceToken>

public class TTableList extends TParseTreeNodeList<TTable>
  • Constructor Details

  • Method Details

    • addTable

      public void addTable(TTable table)
    • addTableByTableRefernce

      public void addTableByTableRefernce(TTableReference tableref)
      add a table reference to table list, if there is already a corresponding table in table list just add this reference to that table, otherwise, create a new table instance, then add this reference.
      Parameters:
      tableref -
    • getTable

      public TTable getTable(int position)
    • checkColumnReferenceInTables

      Parameters:
      crf - column reference
      Returns:
      return position of table this column reference belongs to, 0 means first table. < 0 means not found if no qualifier before column name, always return -2, if return -1,this column name must be found in uplevel tables
    • searchTableByNameOrAlias

      public int searchTableByNameOrAlias(String pTableName)