java.lang.Object
org.litebridgedb.db.spi.expression.ColumnExpressionImpl
org.litebridgedb.db.spi.expression.DelegateColumnExpression
- All Implemented Interfaces:
ColumnExpression,DelegateExpression,SelectExpression
- Direct Known Subclasses:
AliasedDelegateColumnExpression
public abstract class DelegateColumnExpression
extends ColumnExpressionImpl
implements DelegateExpression
Abstract base class for nesting query expressions such as SQL functions.
This class provides a foundation for creating SQL function 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
FieldsModifier and TypeFieldDescriptionprotected final ColumnExpressionThe encapsulated target column expression of this expression.Fields inherited from class org.litebridgedb.db.spi.expression.ColumnExpressionImpl
column -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridgedb.db.spi.expression.SelectExpression
toSql
-
Field Details
-
target
The encapsulated target column expression of this expression.
-
-
Constructor Details
-
DelegateColumnExpression
Constructor.- Parameters:
target- The encapsulated target column expression for this expression.
-
-
Method Details
-
target
Description copied from interface:DelegateExpressionRetrieves the target expression of this delegate.- Specified by:
targetin interfaceDelegateExpression- Returns:
- The target expression.
-
column
Retrieves the target column of this expression.- Specified by:
columnin interfaceColumnExpression- Overrides:
columnin classColumnExpressionImpl- Returns:
- The target column.
-