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:
JdbcMySqlDialect
,MariaDbDialect
,MySqlDialect
A SQL dialect for MySQL.
- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder, Myeonghyeon Lee
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MySqlDialect
Singleton instance.static final IdentifierProcessing
MySQL defaults forIdentifierProcessing
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MySqlDialect
(IdentifierProcessing identifierProcessing) Creates a newMySqlDialect
givenIdentifierProcessing
. -
Method Summary
Modifier and TypeMethodDescriptionReturn a collection of converters for this dialect.Returns theIdentifierProcessing
used for processingSqlIdentifier
when converting them to SQL snippets or parameter names.limit()
Return theLimitClause
used by this dialect.lock()
Return theLockClause
used by this dialect.Return theOrderByNullPrecedence
used by this dialect.Methods inherited from class org.springframework.data.relational.core.dialect.AbstractDialect
getAfterFromTable, getAfterOrderBy, getSelectContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.relational.core.dialect.Dialect
getArraySupport, getExistsFunction, getIdGeneration, getInsertRenderContext, getLikeEscaper, simpleTypes
-
Field Details
-
MYSQL_IDENTIFIER_PROCESSING
MySQL defaults forIdentifierProcessing
. -
INSTANCE
Singleton instance.
-
-
Constructor Details
-
MySqlDialect
protected MySqlDialect() -
MySqlDialect
Creates a newMySqlDialect
givenIdentifierProcessing
.- Parameters:
identifierProcessing
- must not be null.- Since:
- 2.0
-
-
Method Details
-
limit
Description copied from interface:Dialect
Return theLimitClause
used by this dialect.- Returns:
- the
LimitClause
used by this dialect.
-
lock
Description copied from interface:Dialect
Return theLockClause
used by this dialect.- Returns:
- the
LockClause
used by this dialect.
-
getIdentifierProcessing
Description copied from interface:Dialect
Returns theIdentifierProcessing
used for processingSqlIdentifier
when converting them to SQL snippets or parameter names.- Returns:
- the
IdentifierProcessing
. Guaranteed to be not null.
-
getConverters
Description copied from interface:Dialect
Return a collection of converters for this dialect.- Returns:
- a collection of converters for this dialect.
-
orderByNullHandling
Description copied from interface:Dialect
Return theOrderByNullPrecedence
used by this dialect.- Returns:
- the
OrderByNullPrecedence
used by this dialect.
-