sqlFun Class
Function with ability to be converted to sql. When invoked gives a result depending on the arguments.
Constructor
sqlFun
()
public
Methods
myRegExpEscape
(
String
private
-
str
Escapes special characters in a string
Parameters:
-
str
Objectthe string to be escaped
Returns:
String:
escaped string
toSql
(
String
public
-
formatter
-
context
Converts a SqlFun into a string
Parameters:
-
formatter
SqlFormatterused to obtain details about making the expression, see sqlFormatter for an example
-
context
Environmentis the context into which the expression have to be evaluated
Returns:
String:
//the sql representation of the expression