Class MySqlDialect
java.lang.Object
org.springframework.data.relational.core.dialect.AbstractDialect
org.springframework.data.relational.core.dialect.MySqlDialect
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
MariaDbDialect
A SQL dialect for MySQL.
- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder, Myeonghyeon Lee
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MySqlDialectDeprecated, for removal: This API element is subject to removal in a future version.static final IdentifierProcessingDeprecated, for removal: This API element is subject to removal in a future version.Construct your ownIdentifierProcessing. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMySqlDialect(IdentifierProcessing identifierProcessing) Creates a newMySqlDialectgivenIdentifierProcessing. -
Method Summary
Modifier and TypeMethodDescriptionReturn a collection of converters for this dialect.Returns thehandling of table- and column names (identifiers)used for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.Returns theIdGenerationused for generating identifiers.Returns anUpsertRenderContextfor single-statement upsert.limit()Return theLimitClauseused by this dialect.lock()Return theLockClauseused by this dialect.Return theOrderByNullPrecedenceused by this dialect.Methods 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, getInsertRenderContext, getLikeEscaper, getName, simpleTypes, supportsSingleQueryLoading
-
Field Details
-
MYSQL_IDENTIFIER_PROCESSING
@Deprecated(forRemoval=true, since="4.0") public static final IdentifierProcessing MYSQL_IDENTIFIER_PROCESSINGDeprecated, for removal: This API element is subject to removal in a future version.Construct your ownIdentifierProcessing. There is no one standard identifier processing for MySql. See Identifier Case Sensitivity.MySQL defaults forIdentifierProcessing. -
INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.use either theorg.springframework.data.r2dbc.dialect.MySqlDialectororg.springframework.data.jdbc.core.dialect.JdbcMySqlDialectSingleton instance.
-
-
Constructor Details
-
MySqlDialect
protected MySqlDialect() -
MySqlDialect
Creates a newMySqlDialectgivenIdentifierProcessing.- Parameters:
identifierProcessing- must not be null.- Since:
- 2.0
-
-
Method Details
-
getIdentifierProcessing
Description copied from interface:DialectReturns thehandling of table- and column names (identifiers)used for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.- Returns:
- the
IdentifierProcessing. Guaranteed to be not null.
-
getIdGeneration
Description copied from interface:DialectReturns theIdGenerationused for generating identifiers.- Returns:
- the
IdGenerationused for generating identifiers.
-
lock
Description copied from interface:DialectReturn theLockClauseused by this dialect.- Returns:
- the
LockClauseused by this dialect.
-
getConverters
Description copied from interface:DialectReturn a collection of converters for this dialect.- Returns:
- a collection of converters for this dialect.
-
limit
Description copied from interface:DialectReturn theLimitClauseused by this dialect.- Returns:
- the
LimitClauseused by this dialect.
-
orderByNullHandling
Description copied from interface:DialectReturn theOrderByNullPrecedenceused by this dialect.- Returns:
- the
OrderByNullPrecedenceused by this dialect.
-
getUpsertRenderContext
Description copied from interface:DialectReturns anUpsertRenderContextfor single-statement upsert.- Returns:
- the upsert render context, defaults to standard
MERGE.
-
org.springframework.data.r2dbc.dialect.MySqlDialectororg.springframework.data.jdbc.core.dialect.JdbcMySqlDialect