public class Mode
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Mode.ModeEnum |
static class |
Mode.UniqueIndexNullsHandling
Determines how rows with
NULL values in indexed columns are handled
in unique indexes. |
| Modifier and Type | Field and Description |
|---|---|
boolean |
aliasColumnName
When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the
alias (I in this case) in ResultSetMetaData.getColumnName() and 'null' in
getTableName().
|
boolean |
allowAffinityKey
Whether AFFINITY KEY keywords are supported.
|
boolean |
allowDB2TimestampFormat
Whether DB2 TIMESTAMP formats are allowed.
|
boolean |
allowEmptyInPredicate
Whether IN predicate may have an empty value list.
|
boolean |
allowEmptySchemaValuesAsDefaultSchema
If
true constructs like 'CREATE TABLE CATALOG..TABLE_NAME' are allowed,
the default schema is used. |
boolean |
allowPlusForStringConcat
Text can be concatenated using '+'.
|
boolean |
allowUnrelatedOrderByExpressionsInDistinctQueries
If
true unrelated ORDER BY expression are allowed in DISTINCT
queries, if false they are disallowed. |
boolean |
alterTableExtensionsMySQL
If
true some additional non-standard ALTER TABLE commands are allowed. |
boolean |
alterTableModifyColumn
If
true non-standard ALTER TABLE MODIFY COLUMN is allowed. |
boolean |
charToBinaryInUtf8
Convert (VAR)CHAR to VAR(BINARY) and vice versa with UTF-8 encoding instead of HEX.
|
boolean |
convertOnlyToSmallerScale
When converting the scale of decimal data, the number is only converted
if the new scale is smaller than the current scale.
|
boolean |
dateTimeValueWithinTransaction
If
true, datetime value function return the same value within a
transaction, if false datetime value functions return the same
value within a command. |
boolean |
decimalSequences
If
true NEXT VALUE FOR SEQUENCE, CURRENT VALUE FOR SEQUENCE,
SEQUENCE.NEXTVAL, and SEQUENCE.CURRVAL return values with DECIMAL/NUMERIC
data type instead of BIGINT. |
java.util.Set<java.lang.String> |
disallowedTypes
An optional Set of hidden/disallowed column types.
|
boolean |
discardWithTableHints
Discard SQLServer table hints (e.g.
|
boolean |
indexDefinitionInCreateTable
Creating indexes in the CREATE TABLE statement is allowed using
INDEX(..) or KEY(..). |
boolean |
insertOnConflict
PostgreSQL style INSERT ...
|
boolean |
isolationLevelInSelectOrInsertStatement
can set the isolation level using WITH {RR|RS|CS|UR}
|
boolean |
logIsLogBase10
The single-argument function LOG() uses base 10 instead of E.
|
boolean |
nullConcatIsNull
Concatenation with NULL results in NULL.
|
boolean |
onDuplicateKeyUpdate
MySQL style INSERT ...
|
boolean |
padFixedLengthStrings
Whether to right-pad fixed strings with spaces.
|
boolean |
regexpReplaceBackslashReferences
The function REGEXP_REPLACE() uses \ for back-references.
|
boolean |
replaceInto
MySQL style REPLACE INTO.
|
boolean |
serialColumnIsNotPK
SERIAL and BIGSERIAL columns are not automatically primary keys.
|
boolean |
squareBracketQuotedNames
Identifiers may be quoted using square brackets as in [Test].
|
java.util.regex.Pattern |
supportedClientInfoPropertiesRegEx
Pattern describing the keys the java.sql.Connection.setClientInfo()
method accepts.
|
boolean |
supportPoundSymbolForColumnNames
Support the # for column names
|
boolean |
swapConvertFunctionParameters
Swap the parameters of the CONVERT function.
|
boolean |
swapLogFunctionParameters
Swap the parameters of LOG() function.
|
boolean |
sysDummy1
Support the pseudo-table SYSIBM.SYSDUMMY1.
|
boolean |
systemColumns
The system columns 'CTID' and 'OID' are supported.
|
boolean |
treatEmptyStringsAsNull
Empty strings are treated like NULL values.
|
boolean |
truncateTableRestartIdentity
If
true TRUNCATE TABLE uses RESTART IDENTITY by default. |
java.util.HashMap<java.lang.String,DataType> |
typeByNameMap
Custom mappings from type names to data types.
|
Mode.UniqueIndexNullsHandling |
uniqueIndexNullsHandling
Determines how rows with
NULL values in indexed columns are handled
in unique indexes. |
boolean |
useIdentityAsAutoIncrement
Use "IDENTITY" as an alias for "auto_increment" (SQLServer style)
|
boolean |
zeroExLiteralsAreBinaryStrings
If
true 0x-prefixed numbers are parsed as binary string
literals, if false they are parsed as hexadecimal numeric values. |
| Modifier and Type | Method and Description |
|---|---|
Mode.ModeEnum |
getEnum() |
static Mode |
getInstance(java.lang.String name)
Get the mode with the given name.
|
java.lang.String |
getName() |
static Mode |
getRegular() |
java.lang.String |
toString() |
public boolean aliasColumnName
public boolean convertOnlyToSmallerScale
public boolean indexDefinitionInCreateTable
INDEX(..) or KEY(..).
Example: create table test(id int primary key, name varchar(255),
key idx_name(name));public boolean nullConcatIsNull
public boolean squareBracketQuotedNames
public boolean systemColumns
public Mode.UniqueIndexNullsHandling uniqueIndexNullsHandling
NULL values in indexed columns are handled
in unique indexes.public boolean treatEmptyStringsAsNull
public boolean sysDummy1
public boolean allowPlusForStringConcat
public boolean logIsLogBase10
public boolean swapLogFunctionParameters
public boolean regexpReplaceBackslashReferences
public boolean serialColumnIsNotPK
public boolean swapConvertFunctionParameters
public boolean isolationLevelInSelectOrInsertStatement
public boolean onDuplicateKeyUpdate
public boolean replaceInto
public boolean insertOnConflict
public java.util.regex.Pattern supportedClientInfoPropertiesRegEx
public boolean supportPoundSymbolForColumnNames
public boolean allowEmptyInPredicate
public boolean allowAffinityKey
public boolean padFixedLengthStrings
public boolean allowDB2TimestampFormat
public boolean discardWithTableHints
public boolean useIdentityAsAutoIncrement
public boolean charToBinaryInUtf8
public boolean dateTimeValueWithinTransaction
true, datetime value function return the same value within a
transaction, if false datetime value functions return the same
value within a command.public boolean zeroExLiteralsAreBinaryStrings
true 0x-prefixed numbers are parsed as binary string
literals, if false they are parsed as hexadecimal numeric values.public boolean allowUnrelatedOrderByExpressionsInDistinctQueries
true unrelated ORDER BY expression are allowed in DISTINCT
queries, if false they are disallowed.public boolean alterTableExtensionsMySQL
true some additional non-standard ALTER TABLE commands are allowed.public boolean alterTableModifyColumn
true non-standard ALTER TABLE MODIFY COLUMN is allowed.public boolean truncateTableRestartIdentity
true TRUNCATE TABLE uses RESTART IDENTITY by default.public boolean decimalSequences
true NEXT VALUE FOR SEQUENCE, CURRENT VALUE FOR SEQUENCE,
SEQUENCE.NEXTVAL, and SEQUENCE.CURRVAL return values with DECIMAL/NUMERIC
data type instead of BIGINT.public boolean allowEmptySchemaValuesAsDefaultSchema
true constructs like 'CREATE TABLE CATALOG..TABLE_NAME' are allowed,
the default schema is used.public java.util.Set<java.lang.String> disallowedTypes
public java.util.HashMap<java.lang.String,DataType> typeByNameMap
public static Mode getInstance(java.lang.String name)
name - the name of the modepublic static Mode getRegular()
public java.lang.String getName()
public Mode.ModeEnum getEnum()
public java.lang.String toString()
toString in class java.lang.Object