java.lang.Object
org.litebridge.db.spi.impl.expression.AbstractExpression
org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
org.litebridge.db.spi.impl.expression.Cast
- All Implemented Interfaces:
AliasedExpression,DelegateExpression,SelectExpression
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionCast(SelectExpression target, @Nullable String alias, int dataType, @Nullable Integer size, LabelGenerator labelGenerator) -
Method Summary
Modifier and TypeMethodDescriptiontarget()Retrieves the target expression of this delegate.toSql(Operation operation, ClauseType clause, @Nullable DelegateExpression parent) Creates a SQL representation of the expression, providing the immediate nesting/parent expression.Methods inherited from class org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
addAliasAs, alias, equals, hashCode, tableAlias, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql
-
Constructor Details
-
Cast
public Cast(SelectExpression target, @Nullable String alias, int dataType, @Nullable Integer size, LabelGenerator labelGenerator)
-
-
Method Details
-
target
Description copied from interface:DelegateExpressionRetrieves the target expression of this delegate.- Specified by:
targetin interfaceDelegateExpression- Returns:
- The target expression.
-
toSql
Description copied from interface:SelectExpressionCreates a SQL representation of the expression, providing the immediate nesting/parent expression.- Specified by:
toSqlin interfaceSelectExpression- 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
-