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 Summary

    Modifier and Type
    Method
    Description
    default String
    toSql(Operation operation)
    Not supported.
    toSql(Operation operation, ConnectionProvider connectionProvider)
    Creates a SQL representation of the expression using the specified @{link ConnectionProvider}.
  • 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)
      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
      Returns:
      the SQL representation of this expression
      Throws:
      UnsupportedOperationException - since a ConnectionProvider is required