Interface SelectExpression

All Known Subinterfaces:
AliasedExpression, AliasReference, BindValueExpression, ColumnExpression, ColumnReference, ConnectionProviderExpression, DelegateExpression, LiteralExpression
All Known Implementing Classes:
Abs, AbstractAliasedExpression, AbstractColumnExpression, AbstractExpression, AliasReferenceImpl, Avg, BindValueExpressionImpl, Cast, ConvertExpression, Count, CurrentTimestamp, FunctionExpression, LiteralExpressionImpl, Lower, Max, Min, SelectColumn, 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