All Implemented Interfaces:
AliasedExpression, ColumnExpression, SelectExpression

public class SelectColumn extends AbstractColumnExpression
Expression to select a database column.
  • Constructor Details

    • SelectColumn

      public SelectColumn(Column column, @Nullable String alias, @Nullable String tableAlias, LabelGenerator labelGenerator)
      Creates a new SelectColumn.
      Parameters:
      column - the column to select
      alias - the alias to assign to the column
  • Method Details

    • toSql

      public String toSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent)
      Creates a SQL representation of the expression.

      This is usually used for expressions that do not require any aliases.

      Parameters:
      operation - the operation that is being executed
      clause - The current clause type being evaluated
      parent - The parent expression/nesting expression, or null if this is a top-level expression
      Returns:
      the SQL representation of the expression