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

public interface Projection extends Sql
Defines a construct which can be returned in a result set, i.e. an item in the SELECT clause.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the column alias (label) assigned for this projection.
    as(String alias)
    Assigns a column alias (label) for this projection.

    Methods inherited from interface io.github.torand.fastersql.sql.Sql

    aliasRefs, columnRefs, params, sql
  • Method Details

    • as

      Projection as(String alias)
      Assigns a column alias (label) for this projection.
      Parameters:
      alias - the column alias or label.
      Returns:
      the projection with specified alias assigned.
    • alias

      Gets the column alias (label) assigned for this projection.
      Returns:
      the column alias (label) assigned for this projection.