Module litebridge.db.spi.impl
Class AliasedDelegateColumnExpression
java.lang.Object
org.litebridgedb.db.spi.expression.ColumnExpressionImpl
org.litebridgedb.db.spi.expression.DelegateColumnExpression
org.litebridgedb.db.spi.impl.function.AliasedDelegateColumnExpression
- All Implemented Interfaces:
ColumnExpression,DelegateExpression,SelectExpression
- Direct Known Subclasses:
FunctionExpression
A nestable column expression with support for SQL aliasing.
This class extends NestableExpression and integrates the functionality
of aliasing of results through a ColumnIdentifierGenerator.
The primary responsibility of this class is to provide SQL representations of nestable function expressions, either with or without an alias.
-
Field Summary
FieldsFields inherited from class org.litebridgedb.db.spi.expression.DelegateColumnExpression
targetFields inherited from class org.litebridgedb.db.spi.expression.ColumnExpressionImpl
column -
Constructor Summary
ConstructorsConstructorDescriptionAliasedDelegateColumnExpression(ColumnExpression target, ColumnIdentifierGenerator columnIdentifierGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringidWithAlias(Column column, Operation operation) protected StringCreates a SQL representation of the expression.toSqlWithAlias(Operation operation) Creates a SQL representation of the expression, specifically including any required aliases.Methods inherited from class org.litebridgedb.db.spi.expression.DelegateColumnExpression
column, target
-
Field Details
-
columnIdentifierGenerator
-
-
Constructor Details
-
AliasedDelegateColumnExpression
public AliasedDelegateColumnExpression(ColumnExpression target, ColumnIdentifierGenerator columnIdentifierGenerator)
-
-
Method Details
-
toSql
Creates a SQL representation of the expression.This is usually used for expressions that do not require any aliases.
- Parameters:
operation- the operation that is being executed- Returns:
- the SQL representation of the expression
-
toSqlWithAlias
Creates a SQL representation of the expression, specifically including any required aliases.- Parameters:
operation- the operation that is being executed- Returns:
- the SQL representation of the expression
-
id
-
idWithAlias
-
localId
-