public final class ColumnUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnUtils.Escape
The escape
|
| 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
mysql:
only deal with keyword.
|
static String |
addEscape(String colName,
String dbType)
if necessary, add escape by db type
|
static List<String> |
delEscape(List<String> cols,
ColumnUtils.Escape escape)
del escape
|
static List<String> |
delEscape(List<String> cols,
String dbType)
del escape by db type
|
static String |
delEscape(String colName,
ColumnUtils.Escape escape)
del escape by escape
|
static String |
delEscape(String colName,
String dbType)
del escape by db type
|
public static List<String> delEscape(List<String> cols, String dbType)
cols - the colsdbType - the db typepublic static List<String> delEscape(List<String> cols, ColumnUtils.Escape escape)
cols - the colsescape - the escapepublic static String delEscape(String colName, String dbType)
colName - the column namedbType - the db typepublic static String delEscape(String colName, ColumnUtils.Escape escape)
colName - the column nameescape - the escapepublic 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 typeCopyright © 2022 Seata. All rights reserved.