public enum ProductType extends Enum<ProductType>
| 枚举常量和说明 |
|---|
DM_DBMS |
MICROSOFT_SQL_SERVER |
MYSQL |
ORACLE |
POSTGRESQL |
SQLITE |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
applyTableModifier(ProductType productType)
In SQL queries, if the table name contains a special symbol that needs to be
wrapped in a layer of modifiers, different database vendor modifiers will be
different, and this method is designed to provide uniformly, and by default,
return an empty string
|
static List<String> |
getColumnsFromTableName(ProductType productType,
SqlTemplate template,
String tableName,
String schema) |
String |
getName() |
static Optional<ProductType> |
index(String name) |
static boolean |
processLimit(ChannelContext context,
StringBuilder sql,
Integer[] limit) |
static String |
updateTableNameSQL(ProductType productType,
String tableName,
String schema,
String newName) |
static ProductType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ProductType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ProductType MYSQL
public static final ProductType SQLITE
public static final ProductType MICROSOFT_SQL_SERVER
public static final ProductType ORACLE
public static final ProductType POSTGRESQL
public static final ProductType DM_DBMS
public static ProductType[] values()
for (ProductType c : ProductType.values()) System.out.println(c);
public static ProductType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getName()
public static String applyTableModifier(ProductType productType)
productType - public static String updateTableNameSQL(ProductType productType, String tableName, String schema, String newName)
productType - tableName - newName - public static List<String> getColumnsFromTableName(ProductType productType, SqlTemplate template, String tableName, String schema)
productType - template - tableName - public static boolean processLimit(ChannelContext context, StringBuilder sql, Integer[] limit)
context.productType() - sql - limit - public static Optional<ProductType> index(String name)
Copyright © 2023. All rights reserved.