public class FBEscapedFunctionHelper
extends java.lang.Object
| Constructor and Description |
|---|
FBEscapedFunctionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
abs(java.lang.String[] params)
Produce a function call for the
abs UDF function. |
static java.lang.String |
acos(java.lang.String[] params)
Produce a function call for the
acos UDF function. |
static java.lang.String |
asin(java.lang.String[] params)
Produce a function call for the
asin UDF function. |
static java.lang.String |
atan(java.lang.String[] params)
Produce a function call for the
atan UDF function. |
static java.lang.String |
atan2(java.lang.String[] params)
Produce a function call for the
atan2 UDF function. |
static java.lang.String |
ceiling(java.lang.String[] params)
Produce a function call for the
ceiling UDF function. |
static java.lang.String |
convertTemplate(java.lang.String functionCall,
FBEscapedParser.EscapeParserMode mode)
Convert escaped function call using function template.
|
static java.lang.String |
cos(java.lang.String[] params)
Produce a function call for the
cos UDF function. |
static java.lang.String |
cot(java.lang.String[] params)
Produce a function call for the
cot UDF function. |
static java.lang.String |
floor(java.lang.String[] params)
Produce a function call for the
floor UDF function. |
static java.util.Set<java.lang.String> |
getSupportedNumericFunctions() |
static java.util.Set<java.lang.String> |
getSupportedStringFunctions() |
static java.util.Set<java.lang.String> |
getSupportedSystemFunctions() |
static java.util.Set<java.lang.String> |
getSupportedTimeDateFunctions() |
static java.lang.String |
log10(java.lang.String[] params)
Produce a function call for the
log10 UDF function. |
static java.lang.String |
mod(java.lang.String[] params)
Produce a function call for the
mod UDF function. |
static java.util.List<java.lang.String> |
parseArguments(java.lang.String functionCall)
Extract function arguments from the function call.
|
static java.lang.String |
parseFunction(java.lang.String functionCall)
Extract function name from the function call.
|
static java.lang.String |
pi(java.lang.String[] params)
Produce a function call for the
pi UDF function. |
static java.lang.String |
rand(java.lang.String[] params)
Produce a function call for the
rand UDF function. |
static java.lang.String |
sign(java.lang.String[] params)
Produce a function call for the
sign UDF function. |
static java.lang.String |
sin(java.lang.String[] params)
Produce a function call for the
sin UDF function. |
static java.lang.String |
sqrt(java.lang.String[] params)
Produce a function call for the
sqrt UDF function. |
static java.lang.String |
tan(java.lang.String[] params)
Produce a function call for the
tan UDF function. |
public static java.lang.String parseFunction(java.lang.String functionCall)
throws FBSQLParseException
functionCall - escaped function call.FBSQLParseException - if parse error occurs.public static java.util.List<java.lang.String> parseArguments(java.lang.String functionCall)
throws FBSQLParseException
functionCall - escaped function call.FBSQLParseException - if parse error occurs.public static java.lang.String convertTemplate(java.lang.String functionCall,
FBEscapedParser.EscapeParserMode mode)
throws FBSQLParseException
functionCall - escaped function call.null
if no template found.FBSQLParseException - if escaped function call has incorrect syntax.public static java.lang.String abs(java.lang.String[] params)
throws FBSQLParseException
abs UDF function.
The syntax of the abs function is
{fn abs(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String acos(java.lang.String[] params)
throws FBSQLParseException
acos UDF function.
The syntax of the acos function is
{fn acos(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String asin(java.lang.String[] params)
throws FBSQLParseException
asin UDF function.
The syntax of the asin function is
{fn asin(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String atan(java.lang.String[] params)
throws FBSQLParseException
atan UDF function.
The syntax of the atan function is
{fn atan(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String atan2(java.lang.String[] params)
throws FBSQLParseException
atan2 UDF function.
The syntax of the atan2 function is
{fn atan2(float1, float2)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String ceiling(java.lang.String[] params)
throws FBSQLParseException
ceiling UDF function.
The syntax of the ceiling function is
{fn ceiling(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String cos(java.lang.String[] params)
throws FBSQLParseException
cos UDF function.
The syntax of the cos function is
{fn cos(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String cot(java.lang.String[] params)
throws FBSQLParseException
cot UDF function.
The syntax of the cot function is
{fn cot(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String floor(java.lang.String[] params)
throws FBSQLParseException
floor UDF function.
The syntax of the floor function is
{fn floor(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String log10(java.lang.String[] params)
throws FBSQLParseException
log10 UDF function.
The syntax of the log10 function is
{fn log10(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String mod(java.lang.String[] params)
throws FBSQLParseException
mod UDF function.
The syntax of the mod function is
{fn mod(integer1, integer2)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String pi(java.lang.String[] params)
throws FBSQLParseException
pi UDF function.
The syntax of the pi function is {fn pi()}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String rand(java.lang.String[] params)
throws FBSQLParseException
rand UDF function.
The syntax for the rand function is
{fn rand()}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String sign(java.lang.String[] params)
throws FBSQLParseException
sign UDF function.
The syntax for the sign function is
{fn sign(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String sin(java.lang.String[] params)
throws FBSQLParseException
sin UDF function.
The syntax for the sin function is
{fn sin(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String sqrt(java.lang.String[] params)
throws FBSQLParseException
sqrt UDF function.
The syntax for the sqrt function is
{fn sqrt(number)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.lang.String tan(java.lang.String[] params)
throws FBSQLParseException
tan UDF function.
The syntax for the tan function is
{fn tan(float)}.params - The parameters to be used in the callFBSQLParseException - if there is an error with the parameterspublic static java.util.Set<java.lang.String> getSupportedNumericFunctions()
public static java.util.Set<java.lang.String> getSupportedStringFunctions()
public static java.util.Set<java.lang.String> getSupportedTimeDateFunctions()
public static java.util.Set<java.lang.String> getSupportedSystemFunctions()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.