PostgreSQLDialect implements support
for PostgreSQL, and MySQLDialect implements support for MySQL.
A subclass must provide a public constructor with a single parameter
of type DialectResolutionInfo. Alternatively, for purposes of
backward compatibility with older versions of Hibernate, a constructor
with no parameters is also allowed.
Almost every subclass must, as a bare minimum, override at least:
columnType(int) to define a mapping from SQL
type codes to database column types, and
initializeFunctionRegistry(FunctionContributions) to
register mappings for standard HQL functions with the
org.hibernate.query.sqm.function.SqmFunctionRegistry .
A subclass representing a dialect of SQL which deviates significantly from ANSI SQL will certainly override many additional operations.
Subclasses should be thread-safe and immutable.
Since Hibernate 6, a single subclass of Dialect represents all
releases of a given product-specific SQL dialect. The version of the
database is exposed at runtime via the DialectResolutionInfo
passed to the constructor, and by the getVersion() property.
Programs using Hibernate should migrate away from the use of versioned
dialect classes like, for example, MySQL8Dialect. These
classes are now deprecated and will be removed in a future release.
A custom Dialect may be specified using the configuration
property hibernate.dialect, but
for supported databases this property is unnecessary, and Hibernate
will select the correct Dialect based on the JDBC URL and
DialectResolutionInfo.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Dialect.SizeStrategy
Pluggable strategy for determining the |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final StandardAuxiliaryDatabaseObjectExporter | |
| public static final String | CLOSED_QUOTE
Characters used as closing for quoting SQL identifiers |
| private static final Pattern | |
| private static final Pattern | |
| private static final ViolatedConstraintNameExtractor | |
| private final StandardForeignKeyExporter | |
| private final StandardIndexExporter | |
| protected static final LobMergeStrategy | LEGACY_LOB_MERGE_STRATEGY
A |
| private static final CoreMessageLogger | |
| protected static final double | |
| protected static final LobMergeStrategy | NEW_LOCATOR_LOB_MERGE_STRATEGY
A |
| private final Properties | |
| public static final String | QUOTE
Characters used as opening for quoting SQL identifiers |
| private final StandardSequenceExporter | |
| private final Dialect. | |
| private final Set | |
| protected final MultiKeyLoadSizingStrategy | |
| protected static final LobMergeStrategy | STREAM_XFER_LOB_MERGE_STRATEGY
A |
| private final StandardTableCleaner | |
| private final StandardTableExporter | |
| private final StandardTableMigrator | |
| private final StandardTemporaryTableExporter | |
| private final StandardUniqueKeyExporter | |
| private final StandardUserDefinedTypeExporter | |
| private final DatabaseVersion |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | addSqlHintOrComment(String sql, QueryOptions queryOptions, boolean commentsEnabled)
Modify the SQL, adding hints or comments, if necessary |
| public void | appendArrayLiteral(SqlAppender appender, Object[] literal, JdbcLiteralFormatter<Object> elementFormatter, WrapperOptions wrapperOptions)
Append an array literal with the given elements to the given |
| public void | appendBinaryLiteral(SqlAppender appender, byte[] bytes)
Append a binary literal to the given |
| public void | appendBooleanValueString(SqlAppender
The appender, boolean SqlAppender to append the literal expression toThe boolean value bool)Append the SQL literal expression representing the given boolean
value to the given |
| public void | appendDatetimeFormat(SqlAppender appender, String format)
Translate the given datetime format string from
the pattern language defined by Java's
|
| public void | appendDateTimeLiteral(SqlAppender appender, TemporalAccessor temporalAccessor, TemporalType precision, TimeZone jdbcTimeZone)
Append a datetime literal representing the given |
| public void | appendDateTimeLiteral(SqlAppender appender, Date date, TemporalType precision, TimeZone jdbcTimeZone)
Append a datetime literal representing the given |
| public void | appendDateTimeLiteral(SqlAppender appender, Calendar calendar, TemporalType precision, TimeZone jdbcTimeZone)
Append a datetime literal representing the given |
| public void | appendIntervalLiteral(SqlAppender appender, Duration literal)
Append a literal SQL |
| public void | appendLiteral(SqlAppender appender, String literal)
Append a literal string to the given |
| public String | Returns: The table with any required lock hints.The lock options to apply lockOptions, String The name of the table to which to apply the lock hint. tableName)Some dialects support an alternative means to |
| public void | appendUUIDLiteral(SqlAppender appender, UUID literal)
Append a literal SQL |
| public String | Returns: the modified SQL string.the SQL string to modify sql, LockOptions lock options indexed by aliased table names. aliasedLockOptions, Map<String, String[]> a map of key columns indexed by aliased table names. keyColumnNames)Modifies the given SQL, applying the appropriate updates for the specified lock modes and key columns. |
| public void | |
| public void | |
| public IdentifierHelper | Returns: TheIdentifierHelper instance to use,
or null to indicate Hibernate should use its fallback pathA partially-configured builder, DatabaseMetaData IdentifierHelperBuilder.Access to the metadata returned from the driver if needed and if available dbMetaData)Warning it may be The |
| public SQLExceptionConversionDelegate | Returns: TheSQLExceptionConversionDelegate for this dialectAn instance of |
| public boolean | |
| public boolean | Returns: True if the dialect supports catalog creation; false otherwise.Does this dialect support creating and dropping catalogs? |
| public boolean | Returns: True if the dialect supports schema creation; false otherwise.Does this dialect support creating and dropping schema? |
| public boolean | Returns: true if there is some way to do itIs there some way to disable foreign key constraint checking while truncating tables? |
| public String | castPattern(CastType
a from, CastType CastType indicating the
type of the value argumenta to)CastType indicating the
type the value argument is cast toObtain a pattern for the SQL equivalent to a
|
| protected String | Returns: The SQL type to use incast()The JDBC type code representing the target type sqlTypeCode)The SQL type to use in |
| protected void | |
| public char | Returns: The dialect-specific close quote character.The character specific to this dialect used to close a quoted identifier. |
| protected String | Returns: a column type name, with$l, $p, $s
placeholders for length, precision, scalea SQL sqlTypeCode)type codeThe database column type name for a given JDBC type code defined
in |
| public void | contribute(TypeContributions
The callback for adding contributed types typeContributions, ServiceRegistry The service registry serviceRegistry)Implements org. |
| public void | contributeFunctions(FunctionContributions
The target for the contributions functionContributions)Implements org. |
| public void | contributeTypes(TypeContributions
Callback to contribute the types typeContributions, ServiceRegistry The service registry serviceRegistry)A callback which allows the |
| public MutationOperation | createOptionalTableUpdateOperation(EntityMutationTarget mutationTarget, OptionalTableUpdate optionalTableUpdate, SessionFactoryImplementor factory)
Deprecated
as a consequence of
Create a SessionFactoryImplementor being deprecated.
MutationOperation for a updating an optional table
|
| public String | currentDate()
Translation of the HQL/JPQL |
| public String | currentLocalTime()
Translation of the HQL |
| public String | currentLocalTimestamp()
Translation of the HQL |
| public String | currentTime()
Translation of the HQL/JPQL |
| public String | currentTimestamp()
Translation of the HQL/JPQL |
| public String | currentTimestampWithTimeZone()
Translation of the HQL |
| public ScrollMode | Returns: the defaultScrollMode to use.A default |
| public boolean | Returns: True if writers block readers to achieveREAD_COMMITTED;
false otherwise.For the underlying database, is |
| public boolean | Returns: True if readers block writers to achieveREPEATABLE_READ;
false otherwise.For the underlying database, is |
| public boolean | Returns: True if constraints must be dropped prior to dropping the table; false otherwise.Do we need to drop constraints before dropping tables in this dialect? |
| public boolean | Returns: true if the two type codes are equivalentthe first column type info typeCode1, int the second column type info typeCode2)Do the given JDBC type codes, as defined in |
| public static String | |
| public String | extractPattern(TemporalUnit
the first argument unit)Obtain a pattern for the SQL equivalent to an
|
| public boolean | Returns: boolean True if Lob values should be last, false if it does not matter.Must LOB values occur last in inserts and updates? |
| public String | Returns: Thegenerated as clause containing the given expressiona SQL expression used to generate the column value generatedAs)The |
| public String | Returns: Theadd column fragment.The subcommand of the |
| public String | Returns: The suffix of theadd column fragment.The syntax for the suffix used to add a column to a table. |
| public String | Returns: the "add FK" fragmentThe foreign key constraint name constraintName, String[] The names of the columns comprising the
foreign key foreignKey, String The table referenced by the foreign key referencedTable, String[] The explicit columns in the referencedTable
referenced by this foreign key. primaryKey, boolean if false, constraint should be
explicit about which column names
the constraint refers to referencesPrimaryKey)The syntax used to add a foreign key constraint to a table, with the referenced key columns explicitly specified. |
| public String | getAddForeignKeyConstraintString(String
The foreign key constraint name constraintName, String The whole definition of the
foreign key as a fragment foreignKeyDefinition)The syntax used to add a foreign key constraint to a table, given the definition of the foreign key as a string. |
| public String | Returns: The "add PK" fragmentThe name of the PK constraint. constraintName)The syntax used to add a primary key constraint to a table. |
| public AggregateSupport | |
| public String | Returns: a fragment to be appended toalter tablethe name of the column columnName, String the new type of the column columnType, String the full column definition columnDefinition)The fragment of an |
| public String | Returns: The command used to alter a table.The name of the table to alter tableName)The command used to alter a table with the given name, usually
|
| public String | getArrayTypeName(String javaElementTypeName, String elementTypeName, Integer maxLength)
The SQL type name for the array type with elements of the given type name. |
| public Exporter | getAuxiliaryDatabaseObjectExporter()
Get an |
| public MultiKeyLoadSizingStrategy | getBatchLoadSizingStrategy()
The strategy used to determine the appropriate number of keys to load in a single SQL query with batch-fetch loading. |
| public CallableStatementSupport | |
| public String | Returns: The cascade drop keyword, if any, with a leading spaceThe keyword that specifies that a |
| public String | Returns: The dialect-specific case-insensitive like operator.The name of the SQL operator that performs case-insensitive |
| public String | Returns: a SQL expression that will occur in acheck constraintRender a SQL check condition for a column that represents an enumerated value by its string representation. |
| public String | |
| public String | Returns: a SQL expression that will occur in acheck constraintRender a SQL check condition for a column that represents an enumerated value. |
| public String | Returns: a SQL expression that will occur in acheck constraintRender a SQL check condition for a column that represents an enumerated value by its ordinal representation. |
| public ColumnAliasExtractor | |
| public String | Returns: The comment fragmentThe comment to apply comment)Get the comment into a form supported for column definition. |
| public String[] | Returns: The creation commandsThe name of the catalog to be created. catalogName)Get the SQL command used to create the named catalog. |
| public String[] | |
| public String[] | |
| public String | Returns: The command used to create an index.true if the index is a unique indexThe command used to create an index, usually |
| public String | getCreateIndexTail(boolean unique, List<Column> columns)
A string to be appended to the end of the |
| public String | Returns: The command used to create a multiset table.Slight variation on |
| public String[] | Returns: The creation commandsThe name of the schema to be created. schemaName)Get the SQL command used to create the named schema. |
| public String | Returns: The command used to create a table.The command used to create a table, usually |
| public String | Returns: The annotation to be appended, for example,COLLATE DATABASE_DEFAULT in SQL ServerThe SQL type code sqlTypeCode)Annotation to be appended to the end of each COLUMN clause for temporary tables. |
| public String | getCreateUserDefinedTypeExtensionsString()
An arbitrary extension to append to the end of the UDT
|
| public String | getCreateUserDefinedTypeKindString()
The kind of user-defined type to create, or the empty string if this does not need to be specified. |
| public String | Returns: The current schema retrieval SQLGet the SQL command used to retrieve the current schema name. |
| public String | getCurrentTimestampSelectString()
The command used to retrieve the current timestamp from the database. |
| public int | Returns: the default precision, in decimal digitsThis is the default precision for a generated
column mapped to a |
| public int | Returns: the default scale, in decimal digits, of the fractional seconds fieldResolves the default scale for a Usually 9 (nanosecond) or 6 (microseconds). |
| public long | Returns: 1048576 by defaultThe default length for a LOB column, if LOB columns have a length in this dialect. |
| public boolean | getDefaultNonContextualLobCreation()
The default value to use for the configuration property hibernate.jdbc.lob.non_contextual_creation. |
| public Properties | Returns: a set of Hibernate configuration propertiesRetrieve a set of default Hibernate properties for this database. |
| public int | getDefaultStatementBatchSize()
The default value to use for the configuration property hibernate.jdbc.batch_size. |
| public int | Returns: the default precision, in decimal digits, of the fractional seconds fieldThis is the default precision for a generated
column mapped to a |
| public boolean | getDefaultUseGetGeneratedKeys()
The default value to use for the configuration property hibernate.jdbc.use_get_generated_keys. |
| public String | getDisableConstraintsStatement()
A SQL statement that temporarily disables foreign key constraint checking for all tables. |
| public String | getDisableConstraintStatement(String
the name of the table tableName, String the name of the constraint name)A SQL statement that temporarily disables checking of the given foreign key constraint. |
| public DmlTargetColumnQualifierSupport | Returns: the column qualifier support required by this dialectGet the minimum |
| public int | Returns: a value representing "double precision", usually in binary digits, but sometimes in decimal digitsThis is the default precision for a generated
column mapped to a Java |
| public String[] | Returns: The drop commandsThe name of the catalog to be dropped. catalogName)Get the SQL command used to drop the named catalog. |
| public String[] | |
| public String[] | |
| public String | getDropForeignKeyString()
The subcommand of the |
| public String[] | Returns: The drop commandsThe name of the schema to be dropped. schemaName)Get the SQL command used to drop the named schema. |
| public String | Returns: Thedrop table statement as a stringThe name of the table to drop tableName)The command used to drop a table with the given name, usually
|
| public String | getDropUniqueKeyString()
The subcommand of the |
| public String | getEnableConstraintsStatement()
A SQL statement that re-enables foreign key constraint checking for all tables. |
| public String | getEnableConstraintStatement(String
the name of the table tableName, String the name of the constraint name)A SQL statement that re-enables checking of the given foreign key constraint. |
| public String | Returns: the DDL column type declarationthe enumerated values of the type values)If this database has a special MySQL-style |
| public String | |
| public SchemaManagementTool | Returns: aHibernateSchemaManagementTool by defaultThe |
| public SqmMultiTableInsertStrategy | getFallbackSqmInsertStrategy(EntityMappingType entityDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
Deprecated
as a consequence of
The RuntimeModelCreationContext being deprecated.
SqmMultiTableInsertStrategy to use when not specified by
org..
|
| public SqmMultiTableMutationStrategy | getFallbackSqmMutationStrategy(EntityMappingType entityDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
Deprecated
as a consequence of
The RuntimeModelCreationContext being deprecated.
SqmMultiTableMutationStrategy to use when not specified by
org..
|
| public int | Returns: a value representing "single precision", usually in binary digits, but sometimes in decimal digitsThis is the default precision for a generated
column mapped to a Java |
| public Exporter | |
| public String | Returns: The appropriateFOR UPDATE NOWAIT clause string.Retrieves the |
| public String | Returns: The appropriateFOR UPDATE OF colunm_list NOWAIT clause string.The columns to be write locked. aliases)Get the |
| public String | Returns: The appropriateFOR UPDATE SKIP LOCKED clause string.Retrieves the |
| public String | Returns: The appropriateFOR UPDATE colunm_list SKIP LOCKED clause string.The columns to be write locked. aliases)Get the |
| public String | Returns: The appropriatefor update fragment.contains the lock mode to apply. lockOptions)Given a set of |
| private String | Returns: The appropriatefor update fragment.the lock mode to apply. lockMode, int the timeout timeout)Given a lock level and timeout,
determine the appropriate |
| public String | Returns: The appropriate for update fragment.The lock mode to apply. lockMode)Given a |
| public String | Returns: The appropriateFOR UPDATE clause string.Get the string to append to |
| public String | Returns: The appropriateFOR UPDATE OF column_list clause string.The columns to be write locked. aliases)Get the |
| public String | Returns: The appropriateFOR UPDATE OF column_list clause string.The columns to be locked. aliases, LockOptions the lock options to apply lockOptions)Get the |
| public long | Returns: the precision, specified as a quantity of nanosecondsThe "native" precision for arithmetic with datetimes and day-to-second durations. |
| public FunctionalDependencyAnalysisSupport | getFunctionalDependencyAnalysisSupport()
Get this dialect's level of support for primary key functional dependency analysis
within |
| public SelectItemReferenceStrategy | getGroupBySelectItemReferenceStrategy()
Determine how selected items are referenced in the |
| public HqlTranslator | getHqlTranslator()
Return an |
| public IdentityColumnSupport | Returns: the IdentityColumnSupportGet the appropriate |
| public Exporter | |
| public int | Returns: The limit, or a non-positive integer to indicate no limit.Return the limit that the underlying database places on the number of
elements in an |
| public Set | |
| public LimitHandler | getLimitHandler()
Obtain a |
| public LobMergeStrategy | |
| public LockingStrategy | Returns: The appropriate locking strategy.The persister for the entity to be locked. lockable, LockMode The type of lock to be acquired. lockMode)
Deprecated
as a consequence of
A Lockable being deprecated.
LockingStrategy which is able to acquire a database-level
lock with the specified level.
|
| public RowLockStrategy | |
| public String | Returns: The dialect-specific lowercase function.The name of the SQL function that transforms a string to lowercase,
almost always |
| public int | Returns: The maximum length.What is the maximum length Hibernate can use for generated aliases? |
| public int | Returns: The maximum length.What is the maximum identifier length supported by this dialect? |
| public int | |
| public int | getMaxNVarcharLength()
The biggest size value that can be supplied as argument to a
|
| public int | |
| public int | getMaxVarbinaryLength()
The biggest size value that can be supplied as argument to a
|
| public int | |
| public int | getMaxVarcharLength()
The biggest size value that can be supplied as argument to a
|
| protected DatabaseVersion | getMinimumSupportedVersion()
Get the version of the SQL dialect that is the minimum supported by this implementation. |
| public MultiKeyLoadSizingStrategy | getMultiKeyLoadSizingStrategy()
The strategy used to determine the appropriate number of keys to load in a single SQL query with multi-key loading. |
| public NameQualifierSupport | |
| public NationalizationSupport | getNationalizationSupport()
Determines whether this database requires the use of explicitly nationalized character (Unicode) data types. |
| public String | Returns: The name identifying the native generator strategy.The name identifying the "native" id generation strategy for this dialect. |
| public ParameterMarkerStrategy | |
| public String | Returns: The appropriate empty values clause.
Deprecated
since 6. Override the method
The fragment used to insert a row without specifying any column values,
usually just renderInsertIntoNoColumns()
on the translator
returned by this dialect.
(), but sometimes default values.
|
| public String | getNullColumnString()
The keyword used to specify a nullable column, usually |
| public String | getNullColumnString(String columnType)
The keyword used to specify a nullable column of the given SQL type. |
| public NullOrdering | |
| public int | Returns: The limit, or a non-positive integer to indicate no limit.Return the limit that the underlying database places on the number of parameters that can be defined for a PreparedStatement. |
| public int | Returns: one of the type codes defined bySqlTypes.The JDBC type code to use for mapping
properties of basic Java array or |
| public int | Returns: one of the type codes defined byTypes.The JDBC type code to use for mapping
properties of Java type |
| public String | Returns: The modified SQLThe query to which to apply the hint. query, List<String> The hints to apply hintList)Apply a hint to the given SQL query. |
| public String | Returns: The modified SQLThe query to which to apply the hint. query, String The hints to apply hints)Apply a hint to the given SQL query. |
| public String | Returns: The select command; or null if sequences are not supported.Get the |
| public String | Returns: The appropriateLOCK clause string.in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to |
| public String | Returns: The appropriateLOCK clause string.The columns to be read locked. aliases, int in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to |
| public RowLockStrategy | |
| public ResultSet | Returns: The extracted result set.The callable statement. statement)Given a callable statement previously
processed by |
| public ResultSet | Returns: The extracted result set.The callable statement. statement, int The bind position at which to register the output param. position)Given a callable statement previously
processed by |
| public ResultSet | Returns: The extracted result set.The callable statement. statement, String The parameter name (for drivers which support named parameters). name)Given a callable statement previously
processed by |
| public String | Returns: the DDL column definition, ornull if
the rowid is an implicit pseudo-columnIf this dialect requires that the |
| public SchemaNameResolver | Returns: The schema name resolver strategyGet the strategy for determining the schema name from a JDBC
|
| public String | Returns: The appropriate select clause value fragment.The sqlType, TypeConfiguration Types type code.The type configuration typeConfiguration)Given a JDBC type code, return the expression
for a literal null value of that type, to use in a |
| public String | Returns: The appropriate command.Get the command used to select a GUID from the database. |
| public Exporter | |
| public SequenceInformationExtractor | getSequenceInformationExtractor()
A |
| public SequenceSupport | |
| public Dialect. | |
| public SqlAstTranslatorFactory | getSqlAstTranslatorFactory()
Return a |
| public SqmTranslatorFactory | getSqmTranslatorFactory()
Return a |
| public TemporaryTableKind | |
| public Cleaner | |
| public String | Returns: The comment fragmentThe comment to apply comment)Get the comment into a form supported for table definition. |
| public Exporter | |
| public TableMigrator | |
| public String | |
| public AfterUseAction | |
| public BeforeUseAction | |
| public String | |
| public String | getTemporaryTableCreateOptions()
An arbitrary SQL fragment appended to the end of the statement to
create a temporary table, specifying dialect-specific options, or
|
| public TempTableDdlTransactionHandling | getTemporaryTableDdlTransactionHandling()
The sort of transaction handling to use when creating or dropping temporary tables. |
| public String | |
| public TemporaryTableExporter | |
| public String | |
| protected int | |
| public TimeZoneSupport | |
| public String | getTruncateTableStatement(String
the name of the table tableName)A SQL statement that truncates the given table. |
| public String[] | getTruncateTableStatements(String[]
the names of the tables tableNames)A SQL statement or statements that truncate the given tables. |
| public UniqueDelegate | |
| public Exporter | getUniqueKeyExporter()
Get an |
| public String | Returns: The comment fragmentThe comment to apply comment)Get the comment into a form supported for UDT definition. |
| public Exporter | getUserDefinedTypeExporter()
Get an |
| public DatabaseVersion | |
| public ViolatedConstraintNameExtractor | getViolatedConstraintNameExtractor()
Implements org. ViolatedConstraintNameExtractor for extracting the name of
a violated constraint from a SQLException.
|
| public String | Returns: The appropriateLOCK clause string.in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to |
| public String | Returns: The appropriateLOCK clause string.The columns to be read locked. aliases, int in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to |
| public RowLockStrategy | |
| public boolean | Returns: True if we support altering existing tables; false otherwise.Does this dialect support the |
| public boolean | Returns: true if an explicit type is requiredIs an explicit column type required for |
| public boolean | Returns: true if the database/driver has this bugDoes the database/driver have bug in deleting rows that refer to other rows being deleted in the same query? |
| protected void | |
| public void | initializeFunctionRegistry(FunctionContributions functionContributions)
Initialize the given registry with any dialect-specific functions. |
| public String | |
| public boolean | isAnsiNullOn()
Deprecated
since 6. This is only called from
A setting specific to SybaseASESqlAstTranslator
so it doesn't need to be declared here.
SybaseASEDialect.
|
| public boolean | isCurrentTimestampSelectStringCallable()
Is the command returned by |
| public boolean | Returns: boolean True if an empty string is treated as null, false otherwise.Return whether the dialect considers an empty string value to be null. |
| public boolean | |
| protected boolean | |
| public boolean | Returns: True if the lock timeout is rendered into theSQL
string as a parameter; false otherwise.
Deprecated
for removal since 6. This is never called, and since at least Hibernate 5 has
just returned
If this dialect supports specifying lock timeouts, are those timeouts
rendered into the false in every dialect. It will be
removed.
SQL string as parameters?
|
| public char | Returns: The dialect-specific open quote character.The character specific to this dialect used to begin a quoted identifier. |
| public int | ordinal()
Overrides default org. |
| protected String | |
| public boolean | |
| public String | |
| public String | |
| protected void | registerColumnTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
Register ANSI-standard column types using the length limits defined
by |
| protected void | |
| protected void | |
| protected void | registerKeywords(DialectResolutionInfo info)
Register the reserved words reported by the JDBC driver as keywords. |
| public int | Returns: The number of (contiguous) bind positions used.The callable statement. statement, int The bind position at which to register the output param. position)Registers a parameter capable of returning a |
| public int | Returns: The number of (contiguous) bind positions used.The callable statement. statement, String The parameter name (for drivers which support named parameters). name)Registers a parameter capable of returning a |
| public boolean | Returns: true if casting using cast() is requiredDoes this dialect/database require casting of non-string arguments
in the |
| public boolean | Returns: True if integer divisions must becast()ed to floatDoes this dialect require that integer divisions be wrapped in
|
| public boolean | Returns: booleanIf |
| public boolean | Returns: booleanIf |
| protected Integer | resolveSqlTypeCode(String columnTypeName, TypeConfiguration typeConfiguration)
Resolves the |
| protected Integer | resolveSqlTypeCode(String typeName, String baseTypeName, TypeConfiguration typeConfiguration)
Resolves the |
| public JdbcType | Returns: an appropriate instance ofJdbcTypethe column type name columnTypeName, int the jdbcTypeCode, int type codethe precision or 0 precision, int the scale or 0 scale, JdbcTypeRegistry jdbcTypeRegistry)Assigns an appropriate |
| public int | Returns: the precision or length of the columnthe name of the column type columnTypeName, int the JDBC type code of the column type jdbcTypeCode, int the (numeric) precision or (character) length of the column precision, int the scale of a numeric column scale, int the display size of the column displaySize)Determine the length/precision of a column based on information in the
JDBC |
| public String | rowId(String
the name specified by
rowId)org.,
which is ignored if getRowIdColumnString
is not overriddenThe name of a |
| public int | Returns: Types#ROWID by defaultThe JDBC type code of the |
| private boolean | |
| private DdlTypeImpl | |
| private CapacityDependentDdlType. | Returns: the builder objectthe JDBC type code abstracting over the capacity-limited types sqlTypeCode, int the real JDBC type code of the largest type biggestSqlTypeCode, int the real JDBC type code to use to look at the type to use in typecasts castTypeCode)Obtain a builder object for a family of capacity-dependent SQL types. |
| public boolean | |
| public Boolean | Returns: true indicates it does; false indicates it does not; null indicates
it might and that database-metadata should be consulted.Whether this Dialect supports batch updates. |
| public boolean | Returns: Returnstrue if the database supports accepting bind
params as args, false otherwise. The default is
true.Does this dialect support using a JDBC bind parameter as an argument to a function or procedure call? |
| public boolean | Returns: true if there is aBIT or BOOLEAN typeDoes this dialect have a true SQL |
| public boolean | Returns: true if the dialect does support the on delete clause.Does this dialect support |
| public boolean | Returns: true if the database supports case-insensitive like
comparisons, false otherwise.
The default is false.Does this dialect support case-insensitive |
| public boolean | Returns: True if circular cascade delete constraints are supported; false otherwise.Does this dialect support definition of cascade delete constraints which can cause circular chains? |
| public boolean | Returns: True if column-levelcheck constraints are supported;
false otherwise.Does this dialect support column-level check constraints? |
| public boolean | Returns: true if commenting is supportedDoes this dialect support commenting on tables and columns? |
| public boolean | Returns: True if the current timestamp can be retrieved; false otherwise.Does this dialect support some way to retrieve the current timestamp value from the database? |
| public boolean | Returns: True if this SQL dialect is known to support some kind ofdistinct from predicate; false otherwiseDoes this dialect support some kind of |
| public boolean | Returns: True if exists checks are allowed in the select clause; false otherwise.Does the dialect support an exists statement in the select clause? |
| public boolean | Returns: True if normal LOB usage patterns can be used with this driver; false if driver-specific hookiness needs to be applied."Expected" LOB usage pattern is such that I can perform an insert via prepared statement with a parameter binding for a LOB value without crazy casting to JDBC driver implementation-specific classes. |
| public boolean | Returns: true if the underlying database supports the given
fetch clause type, false otherwise.
The default is false.The fetch clause type type)Does this dialect support the given |
| public boolean | supportsFractionalTimestampArithmetic()
Whether the database supports adding a fractional interval to a timestamp,
for example |
| public boolean | Returns: true if if exists can be applied after
alter tableFor an |
| public boolean | Returns: true if if exists can be applied after
the constraint nameFor dropping a constraint with an |
| public boolean | Returns: true if if exists can be applied
after the table nameFor dropping a table, can the phrase |
| public boolean | Returns: true if if exists can be applied
after the type nameFor dropping a type, can the phrase |
| public boolean | Returns: true if if exists can be applied before
the constraint nameFor dropping a constraint with an |
| public boolean | Returns: true if if exists can be applied
before the table nameFor dropping a table, can the phrase |
| public boolean | Returns: true if if exists can be applied
before the type nameFor dropping a type, can the phrase |
| public boolean | Returns: true if org.
works for any sort of primary key column (not just identity columns), or
false if InsertReturningDelegate does not work, or only
works for specialized identity/"autoincrement" columnsDoes this dialect fully support returning arbitrary generated column values
after execution of an |
| public boolean | Returns: true if org.
works for any sort of primary key column (not just identity columns), or
false if GetGeneratedKeysDelegate does not work, or only
works for specialized identity/"autoincrement" columnsDoes this dialect fully support returning arbitrary generated column values
after execution of an |
| public boolean | Returns: true if the database supports is true and
is false, or false if it does not. The
default is is false.Does this dialect support the |
| public boolean | Returns: true if LOBs can be created via the JDBC Connection.JDBC databaseMetaData)DatabaseMetaData which can be used
if LOB creation is supported only starting from
a given driver versionCheck whether the JDBC |
| public boolean | Returns: true if the underlying database supports lateral,
false otherwise. The default is false.Does this dialect support the SQL |
| public boolean | Returns: True if the changes are propagated back to the database; false otherwise.Does the dialect support propagating changes to LOB values back to the database? |
| public boolean | Returns: True is this dialect supports specifying lock timeouts.Does this dialect support specifying timeouts when requesting locks. |
| public boolean | Returns: true if LOBs can be set with the materialized APIs.Check whether the JDBC driver allows setting LOBs via
|
| public boolean | supportsNamedParameters(DatabaseMetaData databaseMetaData)
|
| public boolean | Returns: if this dialect supports no-columnINSERT.Is the |
| public boolean | Returns: true if non-query statements are supported with CTEDoes this dialect support insert, update, and delete statements with Common Table Expressions (CTEs)? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if it doesDoes this dialect support the |
| public boolean | Returns: true if result variable references by column positions are supported; false otherwise.Does this dialect support references to result variables (i.e, select items) by column positions (1-origin) as defined by the select clause? |
| public boolean | Returns: True if outer-joined rows can be locked viaFOR UPDATE.Does this dialect support |
| public boolean | Returns: True if this is supported; false otherwise.
Deprecated
for removal since 6. This seems to be supported on all platforms, and we don't
call this except in test suite
Does this dialect support parameters within the SELECT clause
of INSERT ...
|
| public boolean | |
| protected boolean | supportsPredicateAsExpression()
Whether a predicate like |
| public boolean | Returns: true if recursive CTEs are supportedDoes this dialect/database support recursive CTEs? |
| public Boolean | Returns: true indicates it does; false indicates it does not; null indicates
it might and that database-metadata should be consultedWhether this Dialect supports the JDBC |
| public boolean | Returns: True if methods likeResultSet#isAfterLast and
ResultSet#isBeforeFirst are supported for forward
only cursors; false otherwise.Does this dialect support asking the result set its positioning information on forward-only cursors? |
| public boolean | Returns: true if SKIP_LOCKED is supportedDoes this dialect support |
| public boolean | Returns: booleanDoes this database have native support for ANSI SQL standard arrays which
are expressed in terms of the element type name: |
| public boolean | supportsStandardCurrentTimestampFunction()
Does this dialect have an ANSI SQL |
| public boolean | Returns: true if it doesDoes this dialect support subqueries in the |
| public boolean | Returns: True if this dialect allows references the mutating table from a subquery.Does this dialect support referencing the table being mutated in a subquery? |
| public boolean | Returns: True if a subselect can appear as the LHS of an in-predicate; false otherwise.Is a subselect supported as the left-hand side (LHS) of an |
| public boolean | Returns: True if table-levelcheck constraints are supported;
false otherwise.Does this dialect support table-level check constraints? |
| public boolean | |
| public boolean | Returns: true by default, since most doDoes this database support primary keys for temporary tables? |
| public boolean | Returns: true by default, since most doDoes this database have some sort of support for temporary tables? |
| public boolean | Returns: true if the database supports truncation via a cast,
false otherwise.
The default is true.Does this dialect support truncation of values to a specified length
via a |
| public boolean | Returns: True if the database supports counting tuples; false otherwise.Does this dialect support |
| public boolean | Returns: True if the database supports counting distinct tuples; false otherwise.Does this dialect support |
| public boolean | Returns: True if unbounded materialization is supported; false otherwise.Is it supported to materialize a LOB locator outside the transaction in which it was created? |
| public boolean | Returns: True ifUNION ALL is supported; false otherwise.Does this dialect support |
| public boolean | Returns: True ifUNION is supported in a subquery; false otherwise.Does this dialect support |
| public boolean | Returns: true if values list are supportedDoes this dialect support |
| public boolean | Returns: true if values list are allowed
in insert statementsDoes this dialect support |
| public boolean | |
| public boolean | Returns: true if the underlying database supports window
functions, false otherwise.
The default is false.Does this dialect support window functions like |
| public String | timestampaddPattern(TemporalUnit
The unit to add to the temporal unit, TemporalType The type of the temporal temporalType, IntervalType The type of interval to add or null if it's not a native interval intervalType)Obtain a pattern for the SQL equivalent to a
|
| public String | timestampdiffPattern(TemporalUnit
the first argument unit, TemporalType true if the first argument is
a timestamp, false if a date fromTemporalType, TemporalType true if the second argument is toTemporalType)Obtain a pattern for the SQL equivalent to a
|
| public String | Returns: The appropriate SQL literal.The boolean value bool)The SQL literal expression representing the given boolean value. |
| public String | Returns: The quoted value.The value to be quoted. name)Apply dialect-specific quoting. |
| public String | |
| public String | Returns: The mutated select command, or the same as was passed in.The select command select)Meant as a means for end users to affect the select strings being sent to the database and perhaps manipulate them in some fashion. |
| public String | translateDurationField(TemporalUnit unit)
Return the name used to identify the given unit of
duration as an argument to |
| public String | translateExtractField(TemporalUnit unit)
Return the name used to identify the given field
as an argument to the |
| public String | trimPattern(TrimSpec
leading or trailingthe character to trim character)
Deprecated
for removal. Use
Obtain a pattern for the SQL equivalent to a
trimPattern(TrimSpec, boolean) instead.
trim() function call.
|
| public String | trimPattern(TrimSpec specification, boolean
true if the trim character is a whitespace and can be omitted,
false if it must be explicit and a ?2 placeholder should be included in the patternObtain a pattern for the SQL equivalent to a
|
| public boolean | Returns: booleanDoes this database prefer to use array types for multi-valued parameters. |
| public boolean | Returns: true indicates that the dialect requests that locking
be applied by subsequent select;
false (the default) indicates that locking
should be applied to the main SQL statement.Some dialects have trouble applying pessimistic locking depending upon what other query options are specified (paging, ordering, etc). |
| public boolean | Returns: True if BLOBs and CLOBs should be bound using stream operations.Should LOBs (both BLOB and CLOB) be bound using stream operations,
that is, using |
| public boolean | Returns: true if materialized LOBs should be used for capacity exceeding types.Whether to switch:
|