public final class EscapedFunctions2 extends Object
Constructor and Description |
---|
EscapedFunctions2() |
Modifier and Type | Method and Description |
---|---|
static void |
appendCall(StringBuilder sb,
String begin,
String separator,
String end,
List<? extends CharSequence> args)
Appends
begin arg0 separator arg1 separator end sequence to the input StringBuilder |
static @Nullable Method |
getFunction(String functionName)
get Method object implementing the given function
|
static void |
sqlceiling(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
ceiling to ceil translation
|
static void |
sqlchar(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
char to chr translation
|
static void |
sqlconcat(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
concat translation
|
static void |
sqlcurdate(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
curdate to current_date translation
|
static void |
sqlcurtime(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
curtime to current_time translation
|
static void |
sqldatabase(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
database translation
|
static void |
sqldayname(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
dayname translation
|
static void |
sqldayofmonth(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
dayofmonth translation
|
static void |
sqldayofweek(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
dayofweek translation adding 1 to postgresql function since we expect values from 1 to 7
|
static void |
sqldayofyear(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
dayofyear translation
|
static void |
sqlhour(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
hour translation
|
static void |
sqlifnull(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
ifnull translation
|
static void |
sqlinsert(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
insert to overlay translation
|
static void |
sqllcase(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
lcase to lower translation
|
static void |
sqlleft(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
left to substring translation
|
static void |
sqllength(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
length translation
|
static void |
sqllocate(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
locate translation
|
static void |
sqllog(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
log to ln translation
|
static void |
sqllog10(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
log10 to log translation
|
static void |
sqlltrim(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
ltrim translation
|
static void |
sqlminute(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
minute translation
|
static void |
sqlmonth(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
month translation
|
static void |
sqlmonthname(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
monthname translation
|
static void |
sqlpower(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
power to pow translation
|
static void |
sqlquarter(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
quarter translation
|
static void |
sqlright(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
right to substring translation
|
static void |
sqlrtrim(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
rtrim translation
|
static void |
sqlsecond(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
second translation
|
static void |
sqlspace(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
space translation
|
static void |
sqlsubstring(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
substring to substr translation
|
static void |
sqltimestampadd(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
time stamp add
|
static void |
sqltimestampdiff(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
time stamp diff
|
static void |
sqltruncate(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
truncate to trunc translation
|
static void |
sqlucase(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
ucase to upper translation
|
static void |
sqluser(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
user translation
|
static void |
sqlweek(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
week translation
|
static void |
sqlyear(StringBuilder buf,
List<? extends CharSequence> parsedArgs)
year translation
|
public static @Nullable Method getFunction(String functionName)
functionName
- name of the searched functionpublic static void sqlceiling(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqllog(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqllog10(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlpower(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqltruncate(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlchar(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlconcat(StringBuilder buf, List<? extends CharSequence> parsedArgs)
buf
- The buffer to append intoparsedArgs
- argumentspublic static void sqlinsert(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqllcase(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlleft(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqllength(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqllocate(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlltrim(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlright(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlrtrim(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlspace(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlsubstring(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlucase(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlcurdate(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlcurtime(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqldayname(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqldayofmonth(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqldayofweek(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqldayofyear(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlhour(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlminute(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlmonth(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlmonthname(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlquarter(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlsecond(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlweek(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlyear(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqltimestampadd(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqltimestampdiff(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqldatabase(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqlifnull(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void sqluser(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException
buf
- The buffer to append intoparsedArgs
- argumentsSQLException
- if something wrong happenspublic static void appendCall(StringBuilder sb, String begin, String separator, String end, List<? extends CharSequence> args)
begin arg0 separator arg1 separator end
sequence to the input StringBuilder
sb
- destination StringBuilderbegin
- begin stringseparator
- separator stringend
- end stringargs
- argumentsCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.