Class DateAddSqlFunction

java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.DateAddSqlFunction

public class DateAddSqlFunction extends SqlFunction
Adds a time/date interval to a date and then returns the date
Since:
16.1.0
Author:
Tomer Shapira
  • Constructor Details

    • DateAddSqlFunction

      public DateAddSqlFunction()
  • Method Details

    • apply

      public Object apply(SqlFunctionExecutionContext context)
      Description copied from class: SqlFunction
      Defines the action to be performed on the stored object.
      Specified by:
      apply in class SqlFunction
      Parameters:
      context - with 3 arguments: Timeunit, integer n, date.
      Returns:
      the given date + n*timeunit.