Class SqlColumn


  • public class SqlColumn
    extends SqlNode
    A SQL column.
    • Constructor Detail

      • SqlColumn

        public SqlColumn​(int id,
                         ColumnMetadata metadata)
        Instantiates a new Sql column.
        Parameters:
        id - the id
        metadata - the metadata
      • SqlColumn

        public SqlColumn​(int id,
                         ColumnMetadata metadata,
                         String tableName)
        Instantiates a new Sql column.
        Parameters:
        id - the id
        metadata - the metadata
        tableName - the table name
      • SqlColumn

        public SqlColumn​(int id,
                         ColumnMetadata metadata,
                         String tableName,
                         String tableAlias)
        Instantiates a new Sql column.
        Parameters:
        id - the id
        metadata - the metadata
        tableName - the table name
        tableAlias - the table alias
    • Method Detail

      • getId

        public int getId()
        Gets id.
        Returns:
        the id
      • getMetadata

        public ColumnMetadata getMetadata()
        Gets metadata.
        Returns:
        the metadata
      • getName

        public String getName()
        Gets name.
        Returns:
        the name
      • getTableName

        public String getTableName()
        Gets table name.
        Returns:
        the table name
      • hasTableAlias

        public boolean hasTableAlias()
        Has table alias boolean.
        Returns:
        the boolean
      • getTableAlias

        public String getTableAlias()
        Gets table alias.
        Returns:
        the table alias