public final class ColumnUtils extends Object
| Constructor and Description |
|---|
ColumnUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
addEscape(List<String> cols,
String dbType)
if necessary, add escape by db type
|
static String |
addEscape(String colName,
String dbType)
if necessary, add escape
|
static String |
addEscape(String colName,
String dbType,
TableMeta tableMeta)
if necessary, add escape
|
static List<String> |
delEscape(List<String> cols,
String dbType)
del escape by db type
|
static String |
delEscape(String colName,
String dbType)
del escape by escape
|
public static List<String> delEscape(List<String> cols, String dbType)
cols - the colsdbType - the db typepublic static String delEscape(String colName, String dbType)
colName - the column namedbType - the dbTypepublic static List<String> addEscape(List<String> cols, String dbType)
mysql: only deal with keyword. postgresql: only deal with keyword, contains uppercase character. oracle: only deal with keyword, not full uppercase character.
cols - the column name listdbType - the db typepublic static String addEscape(String colName, String dbType)
colName - the column namedbType - the dbTypeCopyright © 2023 Seata. All rights reserved.