java.lang.Object
org.firebirdsql.jdbc.escape.FBEscapedFunctionHelper
Helper class for escaped functions.
- Author:
- Roman Rokytskyy, Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable String
convertTemplate
(String functionCall) Convert escaped function call using function template.parseArguments
(String functionCall) Extract function arguments from the function call.static String
parseFunction
(String functionCall) Extract function name from the function call.
-
Method Details
-
parseFunction
Extract function name from the function call.- Parameters:
functionCall
- escaped function call.- Returns:
- name of the function.
- Throws:
FBSQLParseException
- if parse error occurs.
-
parseArguments
Extract function arguments from the function call. This method parses escaped function call string and extracts function parameters from it.- Parameters:
functionCall
- escaped function call.- Returns:
- list of parameters of the function.
- Throws:
FBSQLParseException
- if parse error occurs.
-
convertTemplate
Convert escaped function call using function template.- Parameters:
functionCall
- escaped function call.- Returns:
- server-side representation of the function call or
null
if no template found. - Throws:
FBSQLParseException
- if escaped function call has incorrect syntax.
-
getSupportedNumericFunctions
- Returns:
- Set of JDBC numeric functions supported (as defined in appendix C.1 of JDBC 4.3)
-
getSupportedStringFunctions
- Returns:
- Set of JDBC string functions supported (as defined in appendix C.2 of JDBC 4.3)
-
getSupportedTimeDateFunctions
- Returns:
- Set of JDBC time and date functions supported (as defined in appendix C.3 of JDBC 4.3)
-
getSupportedSystemFunctions
- Returns:
- Set of JDBC system functions supported (as defined in appendix C.4 of JDBC 4.3)
-