- 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 TypeMethodDescriptiondefault StringtoSql(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
Creates a SQL representation of the expression, providing the immediate nesting/parent expression.- Parameters:
operation- the operation that is being executedclause- The current clause type being evaluatedparent- The parent expression/nesting expression, ornullif this is a top-level expression- Returns:
- the SQL representation of the expression
-
toSql
Creates a SQL representation of the expression as a non-nested/top-level expression.- Parameters:
operation- the operation that is being executedclause- The current clause type being evaluated- Returns:
- the SQL representation of the expression
-