Interface Dialect
- All Known Subinterfaces:
JdbcDialect
,R2dbcDialect
- All Known Implementing Classes:
AbstractDialect
,AnsiDialect
,Db2Dialect
,H2Dialect
,H2Dialect
,HsqlDbDialect
,JdbcDb2Dialect
,JdbcMySqlDialect
,JdbcPostgresDialect
,JdbcSqlServerDialect
,MariaDbDialect
,MySqlDialect
,MySqlDialect
,OracleDialect
,OracleDialect
,PostgresDialect
,PostgresDialect
,SqlServerDialect
,SqlServerDialect
public interface Dialect
Represents a dialect that is implemented by a particular database. Please note that not all features are supported by
all vendors. Dialects typically express this with feature flags. Methods for unsupported functionality may throw
UnsupportedOperationException
.- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder, Myeonghyeon Lee, Christoph Strobl, Mikhail Polivakha, Chirag Tailor
-
Method Summary
Modifier and TypeMethodDescriptiondefault ArrayColumns
Returns the array support object that describes how array-typed columns are supported by this dialect.default Collection<Object>
Return a collection of converters for this dialect.default SimpleFunction
Provide a SQL function that is suitable for implementing an exists-query.default IdentifierProcessing
Returns theIdentifierProcessing
used for processingSqlIdentifier
when converting them to SQL snippets or parameter names.default IdGeneration
default InsertRenderContext
default Escaper
Returns theEscaper
used forLIKE
value escaping.Obtain theSelectRenderContext
.limit()
Return theLimitClause
used by this dialect.lock()
Return theLockClause
used by this dialect.default OrderByNullPrecedence
Return theOrderByNullPrecedence
used by this dialect.Return theSet
of types considered store native types that can be handeled by the driver.default boolean
-
Method Details
-
limit
LimitClause limit()Return theLimitClause
used by this dialect.- Returns:
- the
LimitClause
used by this dialect.
-
lock
LockClause lock()Return theLockClause
used by this dialect.- Returns:
- the
LockClause
used by this dialect.
-
getArraySupport
Returns the array support object that describes how array-typed columns are supported by this dialect.- Returns:
- the array support object that describes how array-typed columns are supported by this dialect.
-
getSelectContext
SelectRenderContext getSelectContext()Obtain theSelectRenderContext
.- Returns:
- the
SelectRenderContext
.
-
getIdentifierProcessing
Returns theIdentifierProcessing
used for processingSqlIdentifier
when converting them to SQL snippets or parameter names.- Returns:
- the
IdentifierProcessing
. Guaranteed to be not null. - Since:
- 2.0
-
getLikeEscaper
Returns theEscaper
used forLIKE
value escaping.- Returns:
- the
Escaper
used forLIKE
value escaping. - Since:
- 2.0
-
getIdGeneration
-
getConverters
Return a collection of converters for this dialect.- Returns:
- a collection of converters for this dialect.
-
simpleTypes
Return theSet
of types considered store native types that can be handeled by the driver.- Returns:
- never null.
- Since:
- 2.3
-
getInsertRenderContext
- Returns:
- an appropriate
InsertRenderContext
for that specific dialect. for most of the Dialects the default implementation will be valid, but, for example, in case ofSqlServerDialect
it is not. - Since:
- 2.4
-
orderByNullHandling
Return theOrderByNullPrecedence
used by this dialect.- Returns:
- the
OrderByNullPrecedence
used by this dialect. - Since:
- 2.4
-
getExistsFunction
Provide a SQL function that is suitable for implementing an exists-query. The default is `COUNT(1)`, but for some database a `LEAST(COUNT(1), 1)` might be required, which doesn't get accepted by other databases.- Since:
- 3.0
-
supportsSingleQueryLoading
default boolean supportsSingleQueryLoading()
-