Package org.hibernate.dialect
package org.hibernate.dialect
This package abstracts over the multifarious dialects of SQL
understood by the databases supported by Hibernate. A concrete
implementation of
Dialect
defines
the variant understood by a certain RDBMS.
- An integrator may directly extend
Dialect
in order to provide support for a database unknown to Hibernate, or - a program may extend one of the concrete
Dialect
s in this package in order to customize certain aspects of the SQL generated by Hibernate.
A concrete Dialect
may be explicitly selected using
"hibernate.dialect", but
this is not usually necessary unless a program uses a custom
implementation.
- See Also:
-
ClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Implementation for serializing/deserializing an embeddable aggregate to/from the PostgreSQL component format.An abstract base class for Sybase and MS SQL Server dialects.A SQL dialect for Azure SQL Server.Utility for decoding boolean representations.A SQL dialect for CockroachDB 21.1 and above.CockroachSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Cockroach.Strategy for extracting the unique column alias out of a
ResultSetMetaData
.A list of relational database systems for which Hibernate can resolve aDialect
.Details about the underlying database, as understood by a Dialect.Deprecated.UseDB2iDialect
Deprecated.UseDB2iDialect
A SQL dialect for DB2 for LUW (Linux, Unix, and Windows) version 10.5 and above.Variant of theGetObjectExtractor
that catches aNullPointerException
, because the DB2 JDBC driver runs into that exception when trying to access anull
value with thegetObject(int, Class)
andgetObject(String, Class)
methods.A SQL dialect for DB2 for IBM i version 7.1 and above, previously known as "DB2/400".DB2iSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for DB2i.DB2SqlAstTranslator<T extends JdbcOperation>A SQL AST translator for DB2.DB2 supports UDTs but not in JDBC, so there is a feature called "transforms", which allows to specify an automatic translation from one data type to another.A SQL dialect for DB2 for z/OS version 12.1 and above, previously known as: "Db2 UDB for z/OS", and "Db2 UDB for z/OS and OS/390".DB2zSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for DB2z.A SQL dialect for Apache Derby 10.15.2 and above.DerbySqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Derby.Represents a dialect of SQL implemented by a particular RDBMS.Pluggable strategy for determining theSize
to use for columns of a given SQL type.A wrapper of Dialect, to allow decorating some selected methods without having to extend the original class.Logging related to Hibernate dialectsIndicates the level of qualifier support used by the dialect when referencing a column.Dialect support information for primary key functional dependency analysis withinGROUP BY
andORDER BY
clauses.Strategies for rendering a constant in a group by.Strategies for rendering summarization function like rollup and cube in a group by.A SQL dialect for H2.H2 requires binding JSON viasetBytes
methods.H2SqlAstTranslator<T extends JdbcOperation>A SQL AST translator for H2.Deprecated, for removal: This API element is subject to removal in a future version.useHANADialect
withDatabaseVersion.make( 4 )
insteadDeprecated, for removal: This API element is subject to removal in a future version.useHANADialect
insteadAn SQL dialect for the SAP HANA Platform and Cloud.Deprecated, for removal: This API element is subject to removal in a future version.useHANADialect
insteadUtility class that extract some initial configuration from the database forHANADialect
.HANASqlAstTranslator<T extends JdbcOperation>A SQL AST translator for HANA.A SQL dialect for HSQLDB (HyperSQL) 2.6.1 and above.HSQLSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for HSQL.Represents the InnoDB storage engine.A Helper for serializing and deserializing JSON, based on anEmbeddableMappingType
.Strategy for how dialects needLOB
values to be merged.Deprecated.useMariaDBDialect(1060)
A SQL dialect for MariaDB 10.3 and above.MariaDBSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for MariaDB.Represents the MyISAM storage engine.Deprecated.useMySQLDialect(800)
A SQL dialect for MySQL 5.7 and above.Deprecated, for removal: This API element is subject to removal in a future version.UseEnumJdbcType
insteadUtility class that extract some initial configuration from the database forMySQLDialect
and related dialects.MySQLSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for MySQL.This interface defines how various MySQL storage engines behave in regard to Hibernate functionality.Indicates if and how a database supports the use of nationalized character data (Unicode).The order of null.Descriptor forARRAY
handling.Factory forOracleArrayJdbcType
.A SQL dialect for Oracle 11g Release 2 and above.Represents a namedenum
type on Oracle 23ai+.The following class provides some convenience methods for accessing JdbcType instance, that are loaded into the app class loader, where they have access to the JDBC driver classes.Specialized type mapping forJSON
and the JSON SQL data type for Oracle.Descriptor forTABLE
handling.Factory forOracleNestedTableJdbcType
.Represents a namedenum
type on Oracle 23ai+.Utility class that extract some initial configuration from the database forOracleDialect
.OracleSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Oracle.The Oracle specific JDBC type code.The following class provides some convenience methods for accessing JdbcType instance, that are loaded into the app class loader, where they have access to the JDBC driver classes.An SQL dialect for Postgres PlusDescriptor forARRAY
handling.Factory forPostgreSQLArrayJdbcType
.A SQL dialect for PostgreSQL 11 and above.Represents a namedenum
type on PostgreSQL.Represents a namedenum
type on PostgreSQL.PostgreSQLSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for PostgreSQL.Defines how we need to reference columns in the group-by, having, and order-by clauses.The strategy for rendering which row to lock with theFOR UPDATE OF
clause.Strategies for referring to a select item.Simple version of DatabaseVersionA SQL dialect for Cloud Spanner.SpannerSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Spanner.SqlAstTranslatorWithMerge<T extends JdbcOperation>Base for translators which support a full insert-or-update-or-delete (MERGE) command.SqlAstTranslatorWithUpsert<T extends JdbcOperation>Base SqlAstTranslator for translators which support an insert-or-update (UPSERT) commandDeprecated.useSQLServerDialect(11)
Deprecated.useSQLServerDialect(13)
A dialect for Microsoft SQL Server 2008 and aboveSQLServerSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for SQL Server.A Helper for serializing and deserializing struct, based on anEmbeddableMappingType
.A SQL dialect for Sybase Adaptive Server Enterprise 16 and above.SybaseASESqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Sybase ASE.Superclass for all Sybase dialects.SybaseSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for Sybase.SybaseSqmToSqlAstConverter<T extends Statement>A SQM to SQL AST translator for Sybase ASE.A SQL dialect for TiDB.TiDBSqlAstTranslator<T extends JdbcOperation>A SQL AST translator for TiDB.Describes the extent to which a given database supports the SQLwith time zone
types.Specialized type mapping forUUID
and the UUID SQL data type, which binds and reads the UUID through JDBCgetString
/setString
methods.A Helper for serializing and deserializing XML, based on anEmbeddableMappingType
.
HANADialect
in the future.