Module litebridge.db.spi.impl
Class AbstractColumnExpression
java.lang.Object
org.litebridge.db.spi.impl.expression.AbstractExpression
org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
org.litebridge.db.spi.impl.expression.AbstractColumnExpression
- All Implemented Interfaces:
AliasedExpression,ColumnExpression,SelectExpression
- Direct Known Subclasses:
SelectColumn
public abstract class AbstractColumnExpression
extends AbstractAliasedExpression
implements ColumnExpression
Abstract base class for column-specific SQL expressions.
This class provides a foundation for creating SQL column expressions
by encapsulating a Column and offering a method to access it.
It is designed to be extended by concrete implementations to define
specific behaviors and SQL representations.
Classes that extend ColumnExpression are expected to implement
the toSql method from the SelectExpression interface.
-
Field Summary
FieldsFields inherited from class org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
alias, tableAliasFields inherited from class org.litebridge.db.spi.impl.expression.AbstractExpression
labelGenerator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractColumnExpression(Column column, @Nullable String alias, @Nullable String tableAlias, LabelGenerator labelGenerator) Creates a newAbstractColumnExpressioninstance. -
Method Summary
Methods inherited from class org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
addAliasAs, alias, tableAlias, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.litebridge.db.spi.expression.ColumnExpression
alias, tableAliasMethods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql, toSql
-
Field Details
-
column
The target column of this expression.
-
-
Constructor Details
-
AbstractColumnExpression
protected AbstractColumnExpression(Column column, @Nullable String alias, @Nullable String tableAlias, LabelGenerator labelGenerator) Creates a newAbstractColumnExpressioninstance.- Parameters:
column- The target column for this expression.alias- the alias for the expressiontableAlias- parent/source table aliaslabelGenerator- the label generator for rendering aliases/identifiers
-
-
Method Details
-
column
Description copied from interface:ColumnExpressionRetrieves the target column of this expression.- Specified by:
columnin interfaceColumnExpression- Returns:
- The target column.
-
equals
- Overrides:
equalsin classAbstractAliasedExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAliasedExpression
-