Class CoalesceSqlFunction
java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.extended.CoalesceSqlFunction
The COALESCE function returns the first of its arguments that is not null.
Null is returned only if all arguments are null.
It is often used to substitute a default value for null values when data is retrieved for display
-
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
-
CoalesceSqlFunction
public CoalesceSqlFunction()
-
-
Method Details
-
apply
Description copied from class:SqlFunctionDefines the action to be performed on the stored object.- Specified by:
applyin classSqlFunction- Parameters:
context- contains the arguments,SqlFunctionExecutionContext- Returns:
- The Stored object after applying the action
-