|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBEscapedFunctionHelper
public class FBEscapedFunctionHelper
Helper class for escaped functions.
| Constructor Summary | |
|---|---|
FBEscapedFunctionHelper()
|
|
| Method Summary | |
|---|---|
static String |
_char(String[] params)
Produce a function call for the char UDF function. |
static String |
abs(String[] params)
Produce a function call for the abs UDF function. |
static String |
acos(String[] params)
Produce a function call for the acos UDF function. |
static String |
ascii(String[] params)
Produce a function call for the ascii UDF function. |
static String |
asin(String[] params)
Produce a function call for the asin UDF function. |
static String |
atan(String[] params)
Produce a function call for the atan UDF function. |
static String |
atan2(String[] params)
Produce a function call for the atan2 UDF function. |
static String |
ceiling(String[] params)
Produce a function call for the ceiling UDF function. |
static String |
convertTemplate(String functionCall,
int mode)
Convert escaped function call using function template. |
static String |
cos(String[] params)
Produce a function call for the cos UDF function. |
static String |
cot(String[] params)
Produce a function call for the cot UDF function. |
static String |
floor(String[] params)
Produce a function call for the floor UDF function. |
static String |
lcase(String[] params)
Produce a function call for the lcase UDF function. |
static String |
length(String[] params)
Produce a function call for the length UDF function. |
static String |
log(String[] params)
Produce a function call for the log UDF function. |
static String |
log10(String[] params)
Produce a function call for the log10 UDF function. |
static String |
ltrim(String[] params)
Produce a function call for the ltrim UDF function. |
static String |
mod(String[] params)
Produce a function call for the mod UDF function. |
static List |
parseArguments(String functionCall)
Extract function arguments from the function call. |
static String |
parseFunction(String functionCall)
Extract function name from the function call. |
static String |
pi(String[] params)
Produce a function call for the pi UDF function. |
static String |
rand(String[] params)
Produce a function call for the rand UDF function. |
static String |
rtrim(String[] params)
Produce a function call for the rtrim UDF function. |
static String |
sign(String[] params)
Produce a function call for the sign UDF function. |
static String |
sin(String[] params)
Produce a function call for the sin UDF function. |
static String |
sqrt(String[] params)
Produce a function call for the sqrt UDF function. |
static String |
tan(String[] params)
Produce a function call for the tan UDF function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBEscapedFunctionHelper()
| Method Detail |
|---|
public static String parseFunction(String functionCall)
throws FBSQLParseException
functionCall - escaped function call.
FBSQLParseException - if parse error occurs.
public static List parseArguments(String functionCall)
throws FBSQLParseException
functionCall - escaped function call.
FBSQLParseException - if parse error occurs.
public static String convertTemplate(String functionCall,
int mode)
throws FBSQLParseException
functionCall - escaped function call.
null
if no template found.
FBSQLParseException - if escaped function call has incorrect syntax.
public static String abs(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 call
FBSQLParseException - if there is an error with the parameters
public static String acos(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 call
FBSQLParseException - if there is an error with the parameters
public static String asin(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 call
FBSQLParseException - if there is an error with the parameters
public static String atan(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 call
FBSQLParseException - if there is an error with the parameters
public static String atan2(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 call
FBSQLParseException - if there is an error with the parameters
public static String ceiling(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 call
FBSQLParseException - if there is an error with the parameters
public static String cos(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 call
FBSQLParseException - if there is an error with the parameters
public static String cot(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 call
FBSQLParseException - if there is an error with the parameters
public static String floor(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 call
FBSQLParseException - if there is an error with the parameters
public static String log(String[] params)
throws FBSQLParseException
log UDF function.
The syntax of the log function is
{fn log(number)}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String log10(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 call
FBSQLParseException - if there is an error with the parameters
public static String mod(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 call
FBSQLParseException - if there is an error with the parameters
public static String pi(String[] params)
throws FBSQLParseException
pi UDF function.
The syntax of the pi function is {fn pi()}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String rand(String[] params)
throws FBSQLParseException
rand UDF function.
The syntax for the rand function is
{fn rand()}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String sign(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 call
FBSQLParseException - if there is an error with the parameters
public static String sin(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 call
FBSQLParseException - if there is an error with the parameters
public static String sqrt(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 call
FBSQLParseException - if there is an error with the parameters
public static String tan(String[] params)
throws FBSQLParseException
tan UDF function.
The syntax for the tan function is
{fn tan(float)}.
- Parameters:
params - The parameters to be used in the call
- Throws:
FBSQLParseException - if there is an error with the parameters
public static String ascii(String[] params)
throws FBSQLParseException
ascii UDF function.
The syntax of the ascii function is
{fn ascii(string)}
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String _char(String[] params)
throws FBSQLParseException
char UDF function.
The syntax of the char function is
{fn char(integer)}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String lcase(String[] params)
throws FBSQLParseException
lcase UDF function.
The syntax of the lcase function is
{fn lcase(string)}
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String length(String[] params)
throws FBSQLParseException
length UDF function.
The syntax of the length function is
{fn length(string)}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String ltrim(String[] params)
throws FBSQLParseException
ltrim UDF function.
The syntax of the ltrim function is
{fn ltrim(string)}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
public static String rtrim(String[] params)
throws FBSQLParseException
rtrim UDF function.
The syntax of the rtrim function is
{fn rtrim(string)}.
params - The parameters to be used in the call
FBSQLParseException - if there is an error with the parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||