| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static final Object | Returns: the SQL after it has been escape processed.the SQL to escape process. sql, TimeZone server time zone connectionTimeZone, boolean flag indicating if server supports fractional seconds serverSupportsFractionalSecond, boolean flag indicating if server truncates fractional seconds (sql_mode contains TIME_TRUNCATE_FRACTIONAL) serverTruncatesFractionalSecond, ExceptionInterceptor exception interceptor exceptionInterceptor)Escape process one string |
| private static String | Returns: result of rewritingtoken functionToken, ExceptionInterceptor exception interceptor exceptionInterceptor)Re-writes {fn convert (expr, type)} as cast(expr AS type) |
| private static void | processTimestampToken(TimeZone tz, StringBuilder newSql, String token, boolean serverSupportsFractionalSecond, boolean serverTruncatesFractionalSecond, ExceptionInterceptor exceptionInterceptor)
|
| private static void | processTimeToken(StringBuilder newSql, String token, boolean serverSupportsFractionalSecond, ExceptionInterceptor exceptionInterceptor)
|
| private static String | Returns: a string with _no_ whitespace.the string to remove the whitespace from toCollapse)Removes all whitespace from the given String. |
| JDBC_CONVERT_TO_MYSQL_TYPE_MAP | back to summary |
|---|---|
| private static Map<String, String> JDBC_CONVERT_TO_MYSQL_TYPE_MAP | |
| EscapeProcessor | back to summary |
|---|---|
| pack-priv EscapeProcessor() | |
| escapeSQL | back to summary |
|---|---|
| public static final Object escapeSQL(String sql, TimeZone connectionTimeZone, boolean serverSupportsFractionalSecond, boolean serverTruncatesFractionalSecond, ExceptionInterceptor exceptionInterceptor) throws SQLException Escape process one string
| |
| processConvertToken | back to summary |
|---|---|
| private static String processConvertToken(String functionToken, ExceptionInterceptor exceptionInterceptor) throws SQLException Re-writes {fn convert (expr, type)} as cast(expr AS type)
| |
| processTimestampToken | back to summary |
|---|---|
| private static void processTimestampToken(TimeZone tz, StringBuilder newSql, String token, boolean serverSupportsFractionalSecond, boolean serverTruncatesFractionalSecond, ExceptionInterceptor exceptionInterceptor) throws SQLException | |
| processTimeToken | back to summary |
|---|---|
| private static void processTimeToken(StringBuilder newSql, String token, boolean serverSupportsFractionalSecond, ExceptionInterceptor exceptionInterceptor) throws SQLException | |
| removeWhitespace | back to summary |
|---|---|
| private static String removeWhitespace(String toCollapse) Removes all whitespace from the given String. We use this to make escape token comparison white-space ignorant. | |