Class H2Dialect

All Implemented Interfaces:
R2dbcDialect, Dialect

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

    • INSTANCE

      public static final H2Dialect INSTANCE
      Singleton instance.
  • Constructor Details

    • H2Dialect

      public H2Dialect()
  • Method Details

    • renderForGeneratedValues

      public String renderForGeneratedValues(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 LockClause lock()
      Description copied from interface: Dialect
      Return the LockClause used by this dialect.
      Specified by:
      lock in interface Dialect
      Overrides:
      lock in class PostgresDialect
      Returns:
      the LockClause used by this dialect.