Interface Expression
- All Superinterfaces:
Projection
,Sql
- All Known Subinterfaces:
AggregateFunction
,ColumnFunction
,Constant
,Function
,SingleRowFunction
,SystemFunction
- All Known Implementing Classes:
Abs
,Addition
,Avg
,Ceil
,Column
,ColumnRef
,Concat
,Count
,CountAll
,CurrentDate
,CurrentTime
,CurrentTimestamp
,Division
,ExpressionSubquery
,Floor
,GenericConstant
,Length
,Lower
,Max
,Min
,Modulo
,Multiplication
,NullConstant
,Round
,Substring
,Subtraction
,Sum
,ToChar
,ToNumber
,Upper
Defines an expression resulting in a scalar value or a table with rows and columns.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Expression
dividedBy
(Expression expression) Creates the expression of dividing this expression by another expression.default Expression
Creates the expression of dividing this expression by a constant value.default Expression
minus
(Expression expression) Creates the expression of subtracting another expression from this expression.default Expression
Creates the expression of subtracting a constant value from this expression.default Expression
mod
(Expression expression) Creates the expression of calculating the remainder after dividing this expression by another expression.default Expression
Creates the expression of calculating the remainder after dividing this expression by a constant value.default Expression
plus
(Expression expression) Creates the expression of adding another expression to this expression.default Expression
Creates the expression of adding a constant value to this expression.default Expression
times
(Expression expression) Creates the expression of multiplying another expression with this expression.default Expression
Creates the expression of multiplying a constant value with this expression.Methods inherited from interface io.github.torand.fastersql.projection.Projection
alias, as
Methods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs, params, sql
-
Method Details
-
plus
Creates the expression of adding a constant value to this expression.- Parameters:
value
- the constant value.- Returns:
- the addition expression.
-
plus
Creates the expression of adding another expression to this expression.- Parameters:
expression
- the other expression.- Returns:
- the addition expression.
-
minus
Creates the expression of subtracting a constant value from this expression.- Parameters:
value
- the constant value.- Returns:
- the subtraction expression.
-
minus
Creates the expression of subtracting another expression from this expression.- Parameters:
expression
- the other expression.- Returns:
- the subtraction expression.
-
times
Creates the expression of multiplying a constant value with this expression.- Parameters:
value
- the constant value.- Returns:
- the multiplication expression.
-
times
Creates the expression of multiplying another expression with this expression.- Parameters:
expression
- the other expression.- Returns:
- the multiplication expression.
-
dividedBy
Creates the expression of dividing this expression by a constant value.- Parameters:
value
- the constant value.- Returns:
- the division expression.
-
dividedBy
Creates the expression of dividing this expression by another expression.- Parameters:
expression
- the other expression.- Returns:
- the division expression.
-
mod
Creates the expression of calculating the remainder after dividing this expression by a constant value.- Parameters:
value
- the constant value.- Returns:
- the modulo expression.
-
mod
Creates the expression of calculating the remainder after dividing this expression by another expression.- Parameters:
expression
- the other expression.- Returns:
- the modulo expression.
-