Interface Dialect
- All Known Subinterfaces:
JdbcDialect
- All Known Implementing Classes:
AbstractDialect
,AnsiDialect
,Db2Dialect
,H2Dialect
,HsqlDbDialect
,JdbcDb2Dialect
,JdbcH2Dialect
,JdbcMySqlDialect
,JdbcPostgresDialect
,JdbcSqlServerDialect
,MariaDbDialect
,MySqlDialect
,OracleDialect
,PostgresDialect
,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
-
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 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.Return theSet
of types considered store native types that can be handeled by the driver.
-
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
-