Module spring.data.relational
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 MySqlDialectSingleton instance.static final IdentifierProcessingMySQL defaults forIdentifierProcessing. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMySqlDialect(IdentifierProcessing identifierProcessing) Creates a newMySqlDialectgivenIdentifierProcessing. -
Method Summary
Modifier and TypeMethodDescriptionReturn a collection of converters for this dialect.Returns theIdentifierProcessingused for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.limit()Return theLimitClauseused by this dialect.lock()Return theLockClauseused by this dialect.Return theOrderByNullPrecedenceused by this dialect.Methods inherited from class org.springframework.data.relational.core.dialect.AbstractDialect
getAfterFromTable, getAfterOrderBy, getSelectContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.dialect.Dialect
getArraySupport, getExistsFunction, getIdGeneration, getInsertRenderContext, getLikeEscaper, simpleTypes, supportsSingleQueryLoading
-
Field Details
-
MYSQL_IDENTIFIER_PROCESSING
MySQL defaults forIdentifierProcessing. -
INSTANCE
Singleton instance.
-
-
Constructor Details
-
MySqlDialect
protected MySqlDialect() -
MySqlDialect
Creates a newMySqlDialectgivenIdentifierProcessing.- Parameters:
identifierProcessing- must not be null.- Since:
- 2.0
-
-
Method Details
-
limit
Description copied from interface:DialectReturn theLimitClauseused by this dialect.- Returns:
- the
LimitClauseused by this dialect.
-
lock
Description copied from interface:DialectReturn theLockClauseused by this dialect.- Returns:
- the
LockClauseused by this dialect.
-
getIdentifierProcessing
Description copied from interface:DialectReturns theIdentifierProcessingused for processingSqlIdentifierwhen converting them to SQL snippets or parameter names.- Returns:
- the
IdentifierProcessing. Guaranteed to be not null.
-
getConverters
Description copied from interface:DialectReturn a collection of converters for this dialect.- Returns:
- a collection of converters for this dialect.
-
orderByNullHandling
Description copied from interface:DialectReturn theOrderByNullPrecedenceused by this dialect.- Returns:
- the
OrderByNullPrecedenceused by this dialect.
-