Interface ConnectionProviderExpression

All Superinterfaces:
SelectExpression
All Known Implementing Classes:
Subselect, SubselectExpression

public interface ConnectionProviderExpression extends SelectExpression
A select expression in a SQL query that requires a ConnectionProvider to render.
  • Method Details

    • toSql

      PreparedSql toSql(Operation operation, ConnectionProvider connectionProvider)
      Creates a SQL representation of the expression using the specified @{link ConnectionProvider}.
      Parameters:
      operation - the operation that is being executed
      connectionProvider - the connection provider to use to generate SQL
      Returns:
      the SQL representation of the expression
    • toSql

      default String toSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent)
      Not supported.

      This default implementation throws an UnsupportedOperationException, indicating that a connection provider is required.

      Specified by:
      toSql in interface SelectExpression
      Parameters:
      operation - the operation being executed to generate the SQL expression
      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 this expression
      Throws:
      UnsupportedOperationException - since a ConnectionProvider is required