public String toSQL (String functionName, Collection parameters, ISQLBuilderHelper helper) 
throws Exception

This method must return the SQL representation of the function if it supports one. The SQL representation is essential if a function is to be used in queries. If the SQL representation is not provided it will not be possible to use the function in queries. See also an example later in this section.

Parameters

functionNamethe name of the function in the library that needs to be represented in the SQL form.
parametersparameters of the function specified as a collection of the IArithmeticNode objects. To get an SQL representation of a parameter use the toSQL method of the IArithmeticNode interface.
helpera call-back interface that contains certain methods that may help define the SQL representation. See the ISQLBuilderHelper interface.

Returns

A string representing the SQL expression that calculates the function value.

Throws

UnsupportedSQLElementException if the SQL representation for the function is not supported.

  • Last modified: 2023/05/03 04:53