Interface Projection
- All Superinterfaces:
Sql
- All Known Subinterfaces:
AggregateFunction
,ColumnFunction
,Constant
,Expression
,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 a construct which can be returned in a result set, i.e. an item in the SELECT clause.
-
Method Details
-
as
Assigns a column alias (label) for this projection.- Parameters:
alias
- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Optional<ColumnAlias> alias()Gets the column alias (label) assigned for this projection.- Returns:
- the column alias (label) assigned for this projection.
-