Interface SelectExpression

All Known Subinterfaces:
ColumnExpression, ConnectionProviderExpression, DelegateExpression
All Known Implementing Classes:
Abs, Avg, ColumnExpressionImpl, ConvertExpression, Count, DelegateColumnExpression, DelegateColumnExpressionImpl, FunctionExpression, LiteralExpression, Lower, Max, Min, SelectColumn, SelectReference, SelectReferenceImpl, Subselect, SubselectExpression, Substring, Upper

public interface SelectExpression
A select expression in a SQL query.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    toSql(Operation operation, ClauseType clause)
    Creates a SQL representation of the expression as a non-nested/top-level expression.
    toSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent)
    Creates a SQL representation of the expression, providing the immediate nesting/parent expression.
  • Method Details

    • toSql

      String toSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent)
      Creates a SQL representation of the expression, providing the immediate nesting/parent expression.
      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
    • toSql

      default String toSql(Operation operation, ClauseType clause)
      Creates a SQL representation of the expression as a non-nested/top-level expression.
      Parameters:
      operation - the operation that is being executed
      clause - The current clause type being evaluated
      Returns:
      the SQL representation of the expression