|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mysql.jdbc
Class EscapeProcessor

java.lang.Objectcom.mysql.jdbc.EscapeProcessor
- class EscapeProcessor
- extends java.lang.Object
| Field Summary | |
private static java.util.Map |
JDBC_CONVERT_TO_MYSQL_TYPE_MAP
|
private static java.util.Map |
JDBC_NO_CONVERT_TO_MYSQL_EXPRESSION_MAP
|
| Constructor Summary | |
(package private) |
EscapeProcessor()
|
| Method Summary | |
static java.lang.String |
escapeSQL(java.lang.String sql,
boolean serverSupportsConvertFn)
Escape process one string |
private static java.lang.String |
processConvertToken(java.lang.String functionToken,
boolean serverSupportsConvertFn)
Re-writes {fn convert (expr, type)} as cast(expr AS type) |
private static java.lang.String |
removeWhitespace(java.lang.String toCollapse)
Removes all whitespace from the given String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
JDBC_CONVERT_TO_MYSQL_TYPE_MAP
private static java.util.Map JDBC_CONVERT_TO_MYSQL_TYPE_MAP
JDBC_NO_CONVERT_TO_MYSQL_EXPRESSION_MAP
private static java.util.Map JDBC_NO_CONVERT_TO_MYSQL_EXPRESSION_MAP
| Constructor Detail |
EscapeProcessor
EscapeProcessor()
| Method Detail |
escapeSQL
public static final java.lang.String escapeSQL(java.lang.String sql, boolean serverSupportsConvertFn) throws java.sql.SQLException
- Escape process one string
removeWhitespace
private static java.lang.String removeWhitespace(java.lang.String toCollapse)
- Removes all whitespace from the given String. We use
this to make escape token comparison white-space ignorant.
processConvertToken
private static java.lang.String processConvertToken(java.lang.String functionToken, boolean serverSupportsConvertFn) throws java.sql.SQLException
- Re-writes {fn convert (expr, type)} as cast(expr AS type)
|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.mysql.jdbc.EscapeProcessor