Class AbstractColumnExpression

All Implemented Interfaces:
AliasedExpression, ColumnExpression, SelectExpression
Direct Known Subclasses:
SelectColumn

public abstract class AbstractColumnExpression extends AbstractAliasedExpression implements ColumnExpression
Abstract base class for column-specific SQL expressions.

This class provides a foundation for creating SQL column expressions by encapsulating a Column and offering a method to access it. It is designed to be extended by concrete implementations to define specific behaviors and SQL representations.

Classes that extend ColumnExpression are expected to implement the toSql method from the SelectExpression interface.

  • Field Details

    • column

      protected final Column column
      The target column of this expression.
  • Constructor Details

    • AbstractColumnExpression

      protected AbstractColumnExpression(Column column, @Nullable String alias, @Nullable String tableAlias, LabelGenerator labelGenerator)
      Creates a new AbstractColumnExpression instance.
      Parameters:
      column - The target column for this expression.
      alias - the alias for the expression
      tableAlias - parent/source table alias
      labelGenerator - the label generator for rendering aliases/identifiers
  • Method Details