Interface TableLike

All Superinterfaces:
Segment, Visitable
All Known Implementing Classes:
InlineQuery, Table

public interface TableLike extends Segment
A segment that can be used as table in a query.
Author:
Jens Schauder
  • Method Details

    • column

      default Column column(String name)
      Creates a new Column associated with this Table.

      Note: This Table does not track column creation and there is no possibility to enumerate all Columns that were created for this table.

      Parameters:
      name - column name, must not be null or empty.
      Returns:
      a new Column associated with this Table.
    • column

      default Column column(SqlIdentifier name)
      Creates a new Column associated with this Table.

      Note: This Table does not track column creation and there is no possibility to enumerate all Columns that were created for this table.

      Parameters:
      name - column name, must not be null or empty.
      Returns:
      a new Column associated with this Table.
      Since:
      2.0
    • columns

      default List<Column> columns(String... names)
      Creates a List of Columns associated with this Table.

      Note: This Table does not track column creation and there is no possibility to enumerate all Columns that were created for this table.

      Parameters:
      names - column names, must not be null or empty.
      Returns:
      a new List of Columns associated with this Table.
    • columns

      default List<Column> columns(SqlIdentifier... names)
      Creates a List of Columns associated with this Table.

      Note: This Table does not track column creation and there is no possibility to enumerate all Columns that were created for this table.

      Parameters:
      names - column names, must not be null or empty.
      Returns:
      a new List of Columns associated with this Table.
      Since:
      2.0
    • columns

      default List<Column> columns(Collection<String> names)
      Creates a List of Columns associated with this Table.

      Note: This Table does not track column creation and there is no possibility to enumerate all Columns that were created for this table.

      Parameters:
      names - column names, must not be null or empty.
      Returns:
      a new List of Columns associated with this Table.
    • asterisk

      default AsteriskFromTable asterisk()
      Creates a AsteriskFromTable maker selecting all columns from this Table (e.g. SELECT <table> .*.
      Returns:
      the select all marker for this Table.
    • getName

      SqlIdentifier getName()
      Returns:
      the table name.
    • getReferenceName

      SqlIdentifier getReferenceName()
      Returns:
      the table name as it is used in references. This can be the actual name or an alias.