Module litebridge.db.spi.impl
Class AliasedColumnExpression
java.lang.Object
org.litebridgedb.db.spi.expression.ColumnExpressionImpl
org.litebridgedb.db.spi.impl.function.AliasedColumnExpression
- All Implemented Interfaces:
ColumnExpression,SelectExpression
- Direct Known Subclasses:
SelectColumn
A column expression with support for SQL aliasing.
This class extends ColumnExpression and integrates the functionality
of aliasing for SQL column identifiers through a ColumnIdentifierGenerator.
The primary responsibility of this class is to provide SQL representations of column expressions, either with or without an alias.
-
Field Summary
FieldsFields inherited from class org.litebridgedb.db.spi.expression.ColumnExpressionImpl
column -
Constructor Summary
ConstructorsConstructorDescriptionAliasedColumnExpression(Column column, 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.ColumnExpressionImpl
column
-
Field Details
-
columnIdentifierGenerator
-
-
Constructor Details
-
AliasedColumnExpression
-
-
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
-