Interface Projection
- All Superinterfaces:
Sql
- All Known Subinterfaces:
AggregateFunction,ColumnFunction,Constant,Expression,Function,SingleRowFunction,SystemFunction
- All Known Implementing Classes:
Abs,Addition,Avg,Cast,Ceil,Column,ColumnRef,Concat,Count,CountAll,CurrentDate,CurrentTime,CurrentTimestamp,Division,Exp,ExpressionSubquery,Floor,GenericConstant,InlineNumberConstant,InlineStringConstant,Length,Ln,Lower,Max,Min,Modulo,Multiplication,Negate,NullConstant,Power,Round,SearchedCase,SimpleCase,Sqrt,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.
-