Class EscapedFunctions
java.lang.Object
org.postgresql.jdbc.EscapedFunctions
Deprecated.
This class stores supported escaped function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Deprecated.storage for functions implementations.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringconstantToDatePart(String type) Deprecated.private static StringconstantToInterval(String type, String value) Deprecated.Deprecated.static MethodgetFunction(String functionName) Deprecated.get Method object implementing the given function.private static StringsingleArgumentFunctionCall(String call, String functionName, List<?> parsedArgs) Deprecated.static Stringsqlceiling(List<?> parsedArgs) Deprecated.ceiling to ceil translation.static StringDeprecated.char to chr translation.static StringDeprecated.concat translation.static Stringsqlcurdate(List<?> parsedArgs) Deprecated.curdate to current_date translation.static Stringsqlcurtime(List<?> parsedArgs) Deprecated.curtime to current_time translation.static Stringsqldatabase(List<?> parsedArgs) Deprecated.database translation.static Stringsqldayname(List<?> parsedArgs) Deprecated.dayname translation.static Stringsqldayofmonth(List<?> parsedArgs) Deprecated.dayofmonth translation.static Stringsqldayofweek(List<?> parsedArgs) Deprecated.dayofweek translation adding 1 to postgresql function since we expect values from 1 to 7.static Stringsqldayofyear(List<?> parsedArgs) Deprecated.dayofyear translation.static StringDeprecated.hour translation.static StringDeprecated.ifnull translation.static StringDeprecated.insert to overlay translation.static StringDeprecated.lcase to lower translation.static StringDeprecated.left to substring translation.static StringDeprecated.length translation.static StringDeprecated.locate translation.static StringDeprecated.log to ln translation.static StringDeprecated.log10 to log translation.static StringDeprecated.ltrim translation.static StringDeprecated.minute translation.static StringDeprecated.month translation.static Stringsqlmonthname(List<?> parsedArgs) Deprecated.monthname translation.static StringDeprecated.power to pow translation.static Stringsqlquarter(List<?> parsedArgs) Deprecated.quarter translation.static StringDeprecated.right to substring translation.static StringDeprecated.rtrim translation.static StringDeprecated.second translation.static StringDeprecated.space translation.static Stringsqlsubstring(List<?> parsedArgs) Deprecated.substring to substr translation.static Stringsqltimestampadd(List<? extends Object> parsedArgs) Deprecated.time stamp add.static Stringsqltimestampdiff(List<? extends Object> parsedArgs) Deprecated.time stamp diff.static Stringsqltruncate(List<?> parsedArgs) Deprecated.truncate to trunc translation.static StringDeprecated.ucase to upper translation.static StringDeprecated.user translation.static StringDeprecated.week translation.static StringDeprecated.year translation.private static StringtwoArgumentsFunctionCall(String call, String functionName, List<?> parsedArgs) Deprecated.
-
Field Details
-
ABS
-
ACOS
-
ASIN
-
ATAN
-
ATAN2
-
CEILING
-
COS
-
COT
-
DEGREES
-
EXP
-
FLOOR
-
LOG
-
LOG10
-
MOD
-
PI
-
POWER
-
RADIANS
-
ROUND
-
SIGN
-
SIN
-
SQRT
-
TAN
-
TRUNCATE
-
ASCII
-
CHAR
-
CONCAT
-
INSERT
-
LCASE
-
LEFT
-
LENGTH
-
LOCATE
-
LTRIM
-
REPEAT
-
REPLACE
-
RIGHT
-
RTRIM
-
SPACE
-
SUBSTRING
-
UCASE
-
CURDATE
-
CURTIME
-
DAYNAME
-
DAYOFMONTH
-
DAYOFWEEK
-
DAYOFYEAR
-
HOUR
-
MINUTE
-
MONTH
-
MONTHNAME
-
NOW
-
QUARTER
-
SECOND
-
WEEK
-
YEAR
-
TIMESTAMPADD
-
TIMESTAMPDIFF
-
SQL_TSI_ROOT
-
SQL_TSI_DAY
-
SQL_TSI_FRAC_SECOND
-
SQL_TSI_HOUR
-
SQL_TSI_MINUTE
-
SQL_TSI_MONTH
-
SQL_TSI_QUARTER
-
SQL_TSI_SECOND
-
SQL_TSI_WEEK
-
SQL_TSI_YEAR
-
DATABASE
-
IFNULL
-
USER
-
functionMap
-
-
Constructor Details
-
EscapedFunctions
public EscapedFunctions()Deprecated.
-
-
Method Details
-
createFunctionMap
-
getFunction
-
sqlceiling
Deprecated.ceiling to ceil translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqllog
Deprecated.log to ln translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqllog10
Deprecated.log10 to log translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlpower
Deprecated.power to pow translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqltruncate
Deprecated.truncate to trunc translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlchar
Deprecated.char to chr translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlconcat
-
sqlinsert
Deprecated.insert to overlay translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqllcase
Deprecated.lcase to lower translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlleft
Deprecated.left to substring translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqllength
Deprecated.length translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqllocate
Deprecated.locate translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlltrim
Deprecated.ltrim translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlright
Deprecated.right to substring translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlrtrim
Deprecated.rtrim translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlspace
Deprecated.space translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlsubstring
Deprecated.substring to substr translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlucase
Deprecated.ucase to upper translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlcurdate
Deprecated.curdate to current_date translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlcurtime
Deprecated.curtime to current_time translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqldayname
Deprecated.dayname translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqldayofmonth
Deprecated.dayofmonth translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqldayofweek
Deprecated.dayofweek translation adding 1 to postgresql function since we expect values from 1 to 7.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqldayofyear
Deprecated.dayofyear translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlhour
Deprecated.hour translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlminute
Deprecated.minute translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlmonth
Deprecated.month translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlmonthname
Deprecated.monthname translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlquarter
Deprecated.quarter translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlsecond
Deprecated.second translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlweek
Deprecated.week translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlyear
Deprecated.year translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqltimestampadd
Deprecated.time stamp add.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
constantToInterval
Deprecated.- Throws:
SQLException
-
sqltimestampdiff
Deprecated.time stamp diff.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
constantToDatePart
Deprecated.- Throws:
SQLException
-
sqldatabase
Deprecated.database translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqlifnull
Deprecated.ifnull translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
sqluser
Deprecated.user translation.- Parameters:
parsedArgs- arguments- Returns:
- sql call
- Throws:
SQLException- if something wrong happens
-
singleArgumentFunctionCall
private static String singleArgumentFunctionCall(String call, String functionName, List<?> parsedArgs) throws PSQLException Deprecated.- Throws:
PSQLException
-
twoArgumentsFunctionCall
private static String twoArgumentsFunctionCall(String call, String functionName, List<?> parsedArgs) throws PSQLException Deprecated.- Throws:
PSQLException
-
EscapedFunctions2