public static class IdentifierProfile.VendorFlags extends Object
封装各数据库厂商的特殊配置参数
| Modifier and Type | Field and Description |
|---|---|
String |
defaultCollation
SQL Server / Azure SQL: 默认 collation 名称
|
boolean |
mysqlAnsiQuotes
MySQL 家族: sql_mode 中的 ANSI_QUOTES 选项
|
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(ansiQuotes 取默认值 false)
|
VendorFlags(int mysqlLowerCaseTableNames,
String defaultCollation,
boolean redshiftEnableCaseSensitive,
boolean snowflakeQuotedIdentifiersIgnoreCase,
boolean mysqlAnsiQuotes)
构造 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 final boolean mysqlAnsiQuotes
为 true 时,双引号 " 界定标识符(而非字符串字面量)。
只影响 IdentifierCodec 的引号识别/编解码,不影响大小写
折叠/比较规则(fold/compare 与 ANSI_QUOTES 无关)。
默认 false(MySQL 出厂默认," 是字符串定界符)。
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 开关public VendorFlags(int mysqlLowerCaseTableNames, String defaultCollation, boolean redshiftEnableCaseSensitive, boolean snowflakeQuotedIdentifiersIgnoreCase, boolean mysqlAnsiQuotes)
mysqlLowerCaseTableNames - MySQL lower_case_table_names (0, 1, 2)defaultCollation - SQL Server collation 名称redshiftEnableCaseSensitive - Redshift case sensitive 开关snowflakeQuotedIdentifiersIgnoreCase - Snowflake quoted ignore case 开关mysqlAnsiQuotes - MySQL 家族 sql_mode ANSI_QUOTES 开关