- 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 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
-