Class AliasedDelegateColumnExpression

All Implemented Interfaces:
ColumnExpression, DelegateExpression, SelectExpression
Direct Known Subclasses:
FunctionExpression

public class AliasedDelegateColumnExpression extends DelegateColumnExpression
A nestable column expression with support for SQL aliasing.

This class extends NestableExpression and integrates the functionality of aliasing of results through a ColumnIdentifierGenerator.

The primary responsibility of this class is to provide SQL representations of nestable function expressions, either with or without an alias.

  • Field Details

  • Constructor Details

  • Method Details

    • toSql

      public String toSql(Operation operation)
      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
      Returns:
      the SQL representation of the expression
    • toSqlWithAlias

      public String toSqlWithAlias(Operation operation)
      Creates a SQL representation of the expression, specifically including any required aliases.
      Parameters:
      operation - the operation that is being executed
      Returns:
      the SQL representation of the expression
    • id

      protected String id(Column column, Operation operation)
    • idWithAlias

      protected String idWithAlias(Column column, Operation operation)
    • localId

      protected String localId(Operation operation)