@LoadLevel(name="mysql") public class MySQLEscapeHandler extends Object implements EscapeHandler
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
keywordSet |
DEFAULT_ESCAPE_SYMBOL, DOT| Constructor and Description |
|---|
MySQLEscapeHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfKeyWords(String fieldOrTableName)
check whether given field name and table name use keywords
|
boolean |
checkIfNeedEscape(String columnName,
TableMeta tableMeta)
check whether given field or table name use keywords. the method has database special logic.
|
EscapeSymbol |
getEscapeSymbol() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColNameEscape, addColNameEscape, containsEscape, delColNameEscapepublic boolean checkIfKeyWords(String fieldOrTableName)
EscapeHandlercheckIfKeyWords in interface EscapeHandlerfieldOrTableName - the field or table namepublic boolean checkIfNeedEscape(String columnName, TableMeta tableMeta)
EscapeHandlercheckIfNeedEscape in interface EscapeHandlercolumnName - the column or table nametableMeta - the tableMetapublic EscapeSymbol getEscapeSymbol()
getEscapeSymbol in interface EscapeHandlerCopyright © 2023 Seata. All rights reserved.