Class InlineNumberConstant
java.lang.Object
io.github.torand.fastersql.constant.InlineNumberConstant
- All Implemented Interfaces:
Constant,Expression,Projection,Sql
Represents an inline number constant.
The number value is included in the SQL statement directly, not via a statement parameter.
-
Method Summary
Modifier and TypeMethodDescriptionalias()Gets the column alias (label) assigned for this projection.Assigns a column alias (label) for this projection.Creates a projection of the constant.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.value()Gets the constant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.torand.fastersql.expression.Expression
dividedBy, dividedBy, minus, minus, mod, mod, plus, plus, times, timesMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
Method Details
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
as
Description copied from interface:ProjectionAssigns a column alias (label) for this projection.- Specified by:
asin interfaceProjection- Parameters:
alias- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Description copied from interface:ProjectionGets the column alias (label) assigned for this projection.- Specified by:
aliasin interfaceProjection- Returns:
- the column alias (label) assigned for this projection.
-
value
Description copied from interface:ConstantGets the constant value. -
forColumn
Description copied from interface:ConstantCreates a projection of the constant.
-