Helper class for escaped functions.
_char
public static String _char(String[] params)
throws FBSQLParseException Produce a function call for the char UDF function.
The syntax of the char function is
{fn char(integer)}.
params - The parameters to be used in the call
abs
public static String abs(String[] params)
throws FBSQLParseException Produce a function call for the abs UDF function.
The syntax of the abs function is
{fn abs(number)}.
params - The parameters to be used in the call
acos
public static String acos(String[] params)
throws FBSQLParseException Produce a function call for the acos UDF function.
The syntax of the acos function is
{fn acos(float)}.
params - The parameters to be used in the call
ascii
public static String ascii(String[] params)
throws FBSQLParseException Produce a function call for the ascii UDF function.
The syntax of the ascii function is
{fn ascii(string)}
params - The parameters to be used in the call
asin
public static String asin(String[] params)
throws FBSQLParseException Produce a function call for the asin UDF function.
The syntax of the asin function is
{fn asin(float)}.
params - The parameters to be used in the call
atan
public static String atan(String[] params)
throws FBSQLParseException Produce a function call for the atan UDF function.
The syntax of the atan function is
{fn atan(float)}.
params - The parameters to be used in the call
atan2
public static String atan2(String[] params)
throws FBSQLParseException Produce a function call for the atan2 UDF function.
The syntax of the atan2 function is
{fn atan2(float1, float2)}.
params - The parameters to be used in the call
ceiling
public static String ceiling(String[] params)
throws FBSQLParseException Produce a function call for the ceiling UDF function.
The syntax of the ceiling function is
{fn ceiling(number)}.
params - The parameters to be used in the call
convertTemplate
public static String convertTemplate(String functionCall,
int mode)
throws FBSQLParseException Convert escaped function call using function template.
functionCall - escaped function call.
- server-side representation of the function call or
null
if no template found.
cos
public static String cos(String[] params)
throws FBSQLParseException Produce a function call for the cos UDF function.
The syntax of the cos function is
{fn cos(float)}.
params - The parameters to be used in the call
cot
public static String cot(String[] params)
throws FBSQLParseException Produce a function call for the cot UDF function.
The syntax of the cot function is
{fn cot(float)}.
params - The parameters to be used in the call
floor
public static String floor(String[] params)
throws FBSQLParseException Produce a function call for the floor UDF function.
The syntax of the floor function is
{fn floor(number)}.
params - The parameters to be used in the call
lcase
public static String lcase(String[] params)
throws FBSQLParseException Produce a function call for the lcase UDF function.
The syntax of the lcase function is
{fn lcase(string)}
params - The parameters to be used in the call
length
public static String length(String[] params)
throws FBSQLParseException Produce a function call for the length UDF function.
The syntax of the length function is
{fn length(string)}.
params - The parameters to be used in the call
log
public static String log(String[] params)
throws FBSQLParseException Produce a function call for the log UDF function.
The syntax of the log function is
{fn log(number)}.
params - The parameters to be used in the call
log10
public static String log10(String[] params)
throws FBSQLParseException Produce a function call for the log10 UDF function.
The syntax of the log10 function is
{fn log10(number)}.
params - The parameters to be used in the call
ltrim
public static String ltrim(String[] params)
throws FBSQLParseException Produce a function call for the ltrim UDF function.
The syntax of the ltrim function is
{fn ltrim(string)}.
params - The parameters to be used in the call
mod
public static String mod(String[] params)
throws FBSQLParseException Produce a function call for the mod UDF function.
The syntax of the mod function is
{fn mod(integer1, integer2)}.
params - The parameters to be used in the call
parseArguments
public static List parseArguments(String functionCall)
throws FBSQLParseException Extract function arguments from the function call. This method parses
escaped function call string and extracts function parameters from it.
functionCall - escaped function call.
- list of parameters of the function.
parseFunction
public static String parseFunction(String functionCall)
throws FBSQLParseException Extract function name from the function call.
functionCall - escaped function call.
pi
public static String pi(String[] params)
throws FBSQLParseException Produce a function call for the pi UDF function.
The syntax of the pi function is {fn pi()}.
params - The parameters to be used in the call
rand
public static String rand(String[] params)
throws FBSQLParseException Produce a function call for the rand UDF function.
The syntax for the rand function is
{fn rand()}.
params - The parameters to be used in the call
rtrim
public static String rtrim(String[] params)
throws FBSQLParseException Produce a function call for the rtrim UDF function.
The syntax of the rtrim function is
{fn rtrim(string)}.
params - The parameters to be used in the call
sign
public static String sign(String[] params)
throws FBSQLParseException Produce a function call for the sign UDF function.
The syntax for the sign function is
{fn sign(number)}.
params - The parameters to be used in the call
sin
public static String sin(String[] params)
throws FBSQLParseException Produce a function call for the sin UDF function.
The syntax for the sin function is
{fn sin(float)}.
params - The parameters to be used in the call
sqrt
public static String sqrt(String[] params)
throws FBSQLParseException Produce a function call for the sqrt UDF function.
The syntax for the sqrt function is
{fn sqrt(number)}.
params - The parameters to be used in the call
tan
public static String tan(String[] params)
throws FBSQLParseException Produce a function call for the tan UDF function.
The syntax for the tan function is
{fn tan(float)}.
params - The parameters to be used in the call