Class H2Dialect

java.lang.Object
org.springframework.data.relational.core.dialect.AbstractDialect
org.springframework.data.relational.core.dialect.PostgresDialect
org.springframework.data.r2dbc.dialect.PostgresDialect
org.springframework.data.r2dbc.dialect.H2Dialect
All Implemented Interfaces:
R2dbcDialect, org.springframework.data.relational.core.dialect.Dialect

public class H2Dialect extends PostgresDialect
An SQL dialect for H2 in Postgres Compatibility mode.
Author:
Mark Paluch, Jens Schauder, Diego Krupitza
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.data.relational.core.dialect.PostgresDialect

    org.springframework.data.relational.core.dialect.PostgresDialect.PostgresArrayColumns
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final H2Dialect
    Singleton instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.relational.core.dialect.LockClause
     
    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.r2dbc.dialect.PostgresDialect

    getArraySupport, getBindMarkersFactory, getConverters, getSimpleTypes

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

    getIdentifierProcessing, limit, simpleTypes

    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

    getIdentifierProcessing, getIdGeneration, getInsertRenderContext, getLikeEscaper, getSelectContext, limit, orderByNullHandling, simpleTypes

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

    getSimpleTypeHolder
  • Field Details

    • INSTANCE

      public static final H2Dialect INSTANCE
      Singleton instance.
  • Constructor Details

    • H2Dialect

      public H2Dialect()
  • Method Details

    • 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.
      Parameters:
      identifier - to render. Must not be null.
      Returns:
      rendered identifier. Guaranteed to be not null.
    • lock

      public org.springframework.data.relational.core.dialect.LockClause lock()
      Specified by:
      lock in interface org.springframework.data.relational.core.dialect.Dialect
      Overrides:
      lock in class org.springframework.data.relational.core.dialect.PostgresDialect