Class TSQLTable


public class TSQLTable extends TSQLSchemaObject
SQL table, includes a list of columns.
  • Constructor Details

    • TSQLTable

      public TSQLTable(TSQLSchema sqlSchema, String tableName)
      create a new table belong to a schema
      Parameters:
      sqlSchema - schema
      tableName - table name
  • Method Details

    • seal

      public void seal()
      Seal this table to prevent further modifications (Phase 6).

      See TSQLEnv#seal() for detailed documentation.

    • isSealed

      public boolean isSealed()
      Check if this table is sealed (Phase 6).
      Returns:
      true if sealed, false otherwise
    • setView

      public void setView(boolean view)
    • isView

      public boolean isView()
      Used to check whether this is a view.
      Returns:
      true if this is a view.
    • setDefinition

      public void setDefinition(String definition)
    • getDefinition

      This is the script that used to create this view( isView() returns true).
      Returns:
      sql script that used to create this view.
    • getColumnList

      column list
      Returns:
      a column list
    • addColumn

      public void addColumn(String columnName)
      add a new column to the table
      Parameters:
      columnName - column name
    • addColumn

      public void addColumn(String columnName, TTypeName columnDataType)
    • searchColumn

      public boolean searchColumn(String columnName)
    • getColumn

      public TSQLColumn getColumn(String columnName)
    • getColumns

      public ArrayList<String> getColumns(boolean columnNameOnly)