public static class IdentifierProfile.VendorFlags extends Object
封装各数据库厂商的特殊配置参数
| Modifier and Type | Field and Description |
|---|---|
String |
defaultCollation
SQL Server / Azure SQL: 默认 collation 名称
|
int |
mysqlLowerCaseTableNames
MySQL: lower_case_table_names 系统变量(0, 1, 2)
0: 大小写敏感(Unix/Linux)
1: 存储为小写,比较不敏感(Windows)
2: 存储保留原样,比较不敏感(macOS)
|
boolean |
redshiftEnableCaseSensitive
Redshift: enable_case_sensitive_identifier 参数
|
boolean |
snowflakeQuotedIdentifiersIgnoreCase
Snowflake: QUOTED_IDENTIFIERS_IGNORE_CASE 会话参数
|
| Constructor and Description |
|---|
VendorFlags(int mysqlLowerCaseTableNames,
String defaultCollation,
boolean redshiftEnableCaseSensitive,
boolean snowflakeQuotedIdentifiersIgnoreCase)
构造 vendor flags
|
| Modifier and Type | Method and Description |
|---|---|
static IdentifierProfile.VendorFlags |
defaults()
默认 flags(用于大部分数据库)
|
boolean |
equals(Object o) |
int |
hashCode() |
public final int mysqlLowerCaseTableNames
public final String defaultCollation
例如: "SQL_Latin1_General_CP1_CI_AS"
public final boolean redshiftEnableCaseSensitive
默认 false(与 PostgreSQL 一致)
public final boolean snowflakeQuotedIdentifiersIgnoreCase
默认 false(quoted 标识符大小写敏感)
public VendorFlags(int mysqlLowerCaseTableNames, String defaultCollation, boolean redshiftEnableCaseSensitive, boolean snowflakeQuotedIdentifiersIgnoreCase)
mysqlLowerCaseTableNames - MySQL lower_case_table_names (0, 1, 2)defaultCollation - SQL Server collation 名称redshiftEnableCaseSensitive - Redshift case sensitive 开关snowflakeQuotedIdentifiersIgnoreCase - Snowflake quoted ignore case 开关