java.lang.Object
org.litebridge.db.spi.expression.ColumnExpressionImpl
org.litebridge.db.spi.impl.function.SelectColumn
- All Implemented Interfaces:
ColumnExpression,SelectExpression
Expression to select a database column.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ColumnIdentifierGeneratorThe column identifier generator used to create SQL column identifiers.Fields inherited from class org.litebridge.db.spi.expression.ColumnExpressionImpl
column -
Constructor Summary
ConstructorsConstructorDescriptionSelectColumn(Column column, ColumnIdentifierGenerator columnIdentifierGenerator) Creates a newSelectColumn. -
Method Summary
Modifier and TypeMethodDescriptiontoSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent) Creates a SQL representation of the expression.Methods inherited from class org.litebridge.db.spi.expression.ColumnExpressionImpl
columnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql
-
Field Details
-
columnIdentifierGenerator
The column identifier generator used to create SQL column identifiers.
-
-
Constructor Details
-
SelectColumn
Creates a newSelectColumn.- Parameters:
column- the columncolumnIdentifierGenerator- the column identifier generator
-
-
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 executedclause- The current clause type being evaluatedparent- The parent expression/nesting expression, ornullif this is a top-level expression- Returns:
- the SQL representation of the expression
-