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, org.springframework.data.relational.core.dialect.Dialect

public class MySqlDialect extends org.springframework.data.relational.core.dialect.MySqlDialect implements R2dbcDialect
An SQL dialect for MySQL.
Author:
Mark Paluch, Jens Schauder
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Simple singleton to convert Booleans to their Byte representation.
    static enum 
    Simple singleton to convert Bytes to their Boolean representation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MySqlDialect
    Singleton instance.

    Fields inherited from class org.springframework.data.relational.core.dialect.MySqlDialect

    MYSQL_IDENTIFIER_PROCESSING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the BindMarkersFactory used by this dialect.
    Return a collection of converters for this dialect.
    Collection<? extends Class<?>>
    Return a collection of types that are natively supported by this database/driver.
    renderForGeneratedValues(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
    Render a SqlIdentifier in a way suitable for registering it as a generated key with a statement through Statement#returnGeneratedValues.

    Methods inherited from class org.springframework.data.relational.core.dialect.MySqlDialect

    getIdentifierProcessing, limit, lock, orderByNullHandling

    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, getIdentifierProcessing, getIdGeneration, getInsertRenderContext, getLikeEscaper, getSelectContext, limit, lock, orderByNullHandling, simpleTypes

    Methods inherited from interface org.springframework.data.r2dbc.dialect.R2dbcDialect

    getSimpleTypeHolder
  • Field Details

    • INSTANCE

      public static final MySqlDialect INSTANCE
      Singleton instance.
  • Constructor Details

    • MySqlDialect

      public MySqlDialect()
  • Method Details

    • getBindMarkersFactory

      public BindMarkersFactory getBindMarkersFactory()
      Description copied from interface: R2dbcDialect
      Returns the BindMarkersFactory used by this dialect.
      Specified by:
      getBindMarkersFactory in interface R2dbcDialect
      Returns:
      the BindMarkersFactory used by this dialect.
    • getSimpleTypes

      public Collection<? extends Class<?>> getSimpleTypes()
      Description copied from interface: R2dbcDialect
      Return a collection of types that are natively supported by this database/driver. Defaults to Collections.emptySet().
      Specified by:
      getSimpleTypes in interface R2dbcDialect
      Returns:
      a collection of types that are natively supported by this database/driver. Defaults to Collections.emptySet().
    • getConverters

      public Collection<Object> getConverters()
      Description copied from interface: R2dbcDialect
      Return a collection of converters for this dialect.
      Specified by:
      getConverters in interface org.springframework.data.relational.core.dialect.Dialect
      Specified by:
      getConverters in interface R2dbcDialect
      Overrides:
      getConverters in class org.springframework.data.relational.core.dialect.MySqlDialect
      Returns:
      a collection of converters for this dialect.
    • renderForGeneratedValues

      public String renderForGeneratedValues(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
      Description copied from interface: R2dbcDialect
      Render a SqlIdentifier in a way suitable for registering it as a generated key with a statement through Statement#returnGeneratedValues. The default implementation renders it as it would render a SQL representation of the identifier, i.e. with quotes where applicable.
      Specified by:
      renderForGeneratedValues in interface R2dbcDialect
      Parameters:
      identifier - to render. Must not be null.
      Returns:
      rendered identifier. Guaranteed to be not null.