Module litebridge.db.spi
Package org.litebridge.db.spi.expression
Interface ConnectionProviderExpression
- All Superinterfaces:
SelectExpression
- All Known Implementing Classes:
Subselect,SubselectExpression
A select expression in a SQL query that requires a
ConnectionProvider to render.-
Method Summary
Modifier and TypeMethodDescriptiondefault StringtoSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent) Not supported.toSql(Operation operation, ConnectionProvider connectionProvider) Creates a SQL representation of the expression using the specified @{link ConnectionProvider}.Methods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql
-
Method Details
-
toSql
Creates a SQL representation of the expression using the specified @{link ConnectionProvider}.- Parameters:
operation- the operation that is being executedconnectionProvider- the connection provider to use to generate SQL- Returns:
- the SQL representation of the expression
-
toSql
Not supported.This default implementation throws an
UnsupportedOperationException, indicating that a connection provider is required.- Specified by:
toSqlin interfaceSelectExpression- Parameters:
operation- the operation being executed to generate the SQL expressionclause- The current clause type being evaluatedparent- The parent expression/nesting expression, ornullif this is a top-level expression- Returns:
- the SQL representation of this expression
- Throws:
UnsupportedOperationException- since aConnectionProvideris required
-