Class DateAddSqlFunction
java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.DateAddSqlFunction
Adds a time/date interval to a date and then returns the date
- Since:
- 16.1.0
- Author:
- Tomer Shapira
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SqlFunctionExecutionContext context) Defines the action to be performed on the stored object.Methods inherited from class com.gigaspaces.query.sql.functions.SqlFunction
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
-
Constructor Details
-
DateAddSqlFunction
public DateAddSqlFunction()
-
-
Method Details
-
apply
Description copied from class:SqlFunctionDefines the action to be performed on the stored object.- Specified by:
applyin classSqlFunction- Parameters:
context- with 3 arguments: Timeunit, integer n, date.- Returns:
- the given date + n*timeunit.
-