Interface R2dbcDialect
- All Superinterfaces:
Dialect
- All Known Implementing Classes:
H2Dialect
,MySqlDialect
,OracleDialect
,PostgresDialect
,SqlServerDialect
R2DBC-specific extension to
Dialect
. Represents a dialect that is implemented by a particular database.- Author:
- Mark Paluch, Jens Schauder, Michael Berry
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.r2dbc.core.binding.BindMarkersFactory
Returns theBindMarkersFactory
used by this dialect.default Collection<Object>
Return a collection of converters for this dialect.default SimpleTypeHolder
Return theSimpleTypeHolder
for this dialect.default Collection<? extends Class<?>>
Return a collection of types that are natively supported by this database/driver.default String
renderForGeneratedValues
(SqlIdentifier identifier) Render aSqlIdentifier
in a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues
.Methods inherited from interface org.springframework.data.relational.core.dialect.Dialect
getArraySupport, getExistsFunction, getIdentifierProcessing, getIdGeneration, getInsertRenderContext, getLikeEscaper, getSelectContext, limit, lock, orderByNullHandling, simpleTypes
-
Method Details
-
getBindMarkersFactory
org.springframework.r2dbc.core.binding.BindMarkersFactory getBindMarkersFactory()Returns theBindMarkersFactory
used by this dialect.- Returns:
- the
BindMarkersFactory
used by this dialect.
-
getSimpleTypes
Return a collection of types that are natively supported by this database/driver. Defaults toCollections.emptySet()
.- Returns:
- a collection of types that are natively supported by this database/driver. Defaults to
Collections.emptySet()
.
-
getSimpleTypeHolder
Return theSimpleTypeHolder
for this dialect.- Returns:
- the
SimpleTypeHolder
for this dialect. - See Also:
-
getConverters
Return a collection of converters for this dialect.- Specified by:
getConverters
in interfaceDialect
- Returns:
- a collection of converters for this dialect.
-
renderForGeneratedValues
Render aSqlIdentifier
in a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues
. The default implementation renders it as it would render a SQL representation of the identifier, i.e. with quotes where applicable.- Parameters:
identifier
- to render. Must not be null.- Returns:
- rendered identifier. Guaranteed to be not null.
- Since:
- 1.3.2
-