Class com::omnisci::jdbc::OmniSciEscapeFunctions¶
-
class
OmniSciEscapeFunctions
¶ Public Static Functions
-
static Method com.omnisci.jdbc.OmniSciEscapeFunctions.getFunction(String functionName)
get Method object implementing the given function
- Return
a Method object or null if not found
- Parameters
functionName
: name of the searched function
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlceiling(StringBuilder buf, List<?extends CharSequence > parsedArgs)
ceiling to ceil translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqldayofmonth(StringBuilder buf, List<?extends CharSequence > parsedArgs)
dayofmonth translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqldayofweek(StringBuilder buf, List<?extends CharSequence > parsedArgs)
dayofweek translation adding 1 to postgresql function since we expect values from 1 to 7
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqldayofyear(StringBuilder buf, List<?extends CharSequence > parsedArgs)
dayofyear translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlhour(StringBuilder buf, List<?extends CharSequence > parsedArgs)
hour translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlminute(StringBuilder buf, List<?extends CharSequence > parsedArgs)
minute translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlmonth(StringBuilder buf, List<?extends CharSequence > parsedArgs)
month translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlquarter(StringBuilder buf, List<?extends CharSequence > parsedArgs)
quarter translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlsecond(StringBuilder buf, List<?extends CharSequence > parsedArgs)
second translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlweek(StringBuilder buf, List<?extends CharSequence > parsedArgs)
week translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.sqlyear(StringBuilder buf, List<?extends CharSequence > parsedArgs)
year translation
- Parameters
buf
: The buffer to append intoparsedArgs
: arguments
- Exceptions
SQLException
: if something wrong happens
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.appendCall(StringBuilder sb, String begin, String separator, String end, List<?extends CharSequence > args)
Appends
sequence to the input StringBuilderbegin arg0 separator arg1 separator end
- Parameters
sb
: destination StringBuilderbegin
: begin stringseparator
: separator stringend
: end stringargs
: arguments
Private Static Functions
-
static ConcurrentMap<String, Method> com.omnisci.jdbc.OmniSciEscapeFunctions.createFunctionMap(String prefix)
-
static void com.omnisci.jdbc.OmniSciEscapeFunctions.singleArgumentFunctionCall(StringBuilder buf, String call, String functionName, List<?extends CharSequence > parsedArgs)
Private Static Attributes
-
final ConcurrentMap<String, Method> com.omnisci.jdbc.OmniSciEscapeFunctions.FUNCTION_MAP=createFunctionMap("sql")
storage for functions implementations
-