Class CurrentTime

java.lang.Object
io.github.torand.fastersql.function.system.CurrentTime
All Implemented Interfaces:
Expression, Function, SystemFunction, Projection, Sql

public class CurrentTime extends Object implements SystemFunction
Implements the current time system function.
  • Method Details

    • sql

      public String sql(Context context)
      Description copied from interface: Sql
      Formats object as an SQL fragment.
      Specified by:
      sql in interface Sql
      Parameters:
      context - the context (incl. dialect).
      Returns:
      the formatted SQL fragment.
    • as

      public Projection as(String alias)
      Description copied from interface: Projection
      Assigns a column alias (label) for this projection.
      Specified by:
      as in interface Projection
      Parameters:
      alias - the column alias or label.
      Returns:
      the projection with specified alias assigned.
    • alias

      public Optional<ColumnAlias> alias()
      Description copied from interface: Projection
      Gets the column alias (label) assigned for this projection.
      Specified by:
      alias in interface Projection
      Returns:
      the column alias (label) assigned for this projection.