Class MySqlDialect
java.lang.Object
org.springframework.data.relational.core.dialect.AbstractDialect
org.springframework.data.relational.core.dialect.MySqlDialect
org.springframework.data.r2dbc.dialect.MySqlDialect
- All Implemented Interfaces:
R2dbcDialect, Dialect
An SQL dialect for MySQL.
- Author:
- Mark Paluch, Jens Schauder, Kurt Niemi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsFields inherited from class MySqlDialect
MYSQL_IDENTIFIER_PROCESSING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theBindMarkersFactoryused by this dialect.Return a collection of converters for this dialect.renderForGeneratedValues(SqlIdentifier identifier) Render aSqlIdentifierin a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues.Return theSetof types considered store native types that can be handeled by the driver.Methods inherited from class MySqlDialect
getIdentifierProcessing, getIdGeneration, getUpsertRenderContext, limit, lock, orderByNullHandlingMethods inherited from class AbstractDialect
getAfterFromTable, getAfterOrderBy, getSelectContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Dialect
getArraySupport, getExistsFunction, getIdentifierProcessing, getIdGeneration, getInsertRenderContext, getLikeEscaper, getName, getSelectContext, getUpsertRenderContext, limit, lock, orderByNullHandling, supportsSingleQueryLoadingMethods inherited from interface R2dbcDialect
getSimpleTypeHolder, getSimpleTypes
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Constructor Details
-
MySqlDialect
public MySqlDialect()
-
-
Method Details
-
getBindMarkersFactory
Description copied from interface:R2dbcDialectReturns theBindMarkersFactoryused by this dialect.- Specified by:
getBindMarkersFactoryin interfaceR2dbcDialect- Returns:
- the
BindMarkersFactoryused by this dialect.
-
simpleTypes
-
getConverters
Description copied from interface:DialectReturn a collection of converters for this dialect.- Specified by:
getConvertersin interfaceDialect- Overrides:
getConvertersin classMySqlDialect- Returns:
- a collection of converters for this dialect.
-
renderForGeneratedValues
Description copied from interface:R2dbcDialectRender aSqlIdentifierin 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.- Specified by:
renderForGeneratedValuesin interfaceR2dbcDialect- Parameters:
identifier- to render. Must not be null.- Returns:
- rendered identifier. Guaranteed to be not null.
-