Class H2Dialect

All Implemented Interfaces:
Dialect

public class H2Dialect extends H214199Dialect
A dialect for H2 version 1.4.200 and above.
  • Constructor Details

  • Method Details

    • includesIdentityColumn

      public boolean includesIdentityColumn()
      Description copied from interface: Dialect
      Determines whether this dialect includes IDENTITY columns in SQL INSERT statements.

      Some database systems require that IDENTITY columns be excluded from INSERT statements, while others allow or require them to be included.

      Specified by:
      includesIdentityColumn in interface Dialect
      Overrides:
      includesIdentityColumn in class H212126Dialect
      Returns:
      true if this dialect includes IDENTITY columns in INSERT statements, false otherwise
    • supportsUpsertEmulationWithMergeStatement

      public boolean supportsUpsertEmulationWithMergeStatement()
      Description copied from interface: Dialect
      Determines whether this dialect supports upsert emulation using MERGE statements.

      An upsert operation (update or insert) can be emulated using MERGE statements in some database systems. This method indicates whether the dialect supports this approach.

      The default implementation returns false.

      Returns:
      true if this dialect supports upsert emulation with MERGE statements, false otherwise
    • supportsBatchExecutionReturningGeneratedValues

      public boolean supportsBatchExecutionReturningGeneratedValues()
      Description copied from interface: Dialect
      Determines whether this dialect supports retrieving generated values from batch executions.

      Some database systems can return auto-generated values (like identity columns) even when executing statements in batch mode, while others cannot.

      The default implementation returns false.

      Returns:
      true if this dialect supports retrieving generated values from batch executions, false otherwise
    • getUpsertAssembler

      public UpsertAssembler getUpsertAssembler(UpsertAssemblerContext context)
      Description copied from interface: Dialect
      Returns the UpsertAssembler implementation for the given context.
      Specified by:
      getUpsertAssembler in interface Dialect
      Overrides:
      getUpsertAssembler in class StandardDialect
      Parameters:
      context - the UpsertAssemblerContext object
      Returns:
      the UpsertAssembler object for the given context
    • getInsertAssembler

      public <ENTITY> InsertAssembler getInsertAssembler(InsertAssemblerContext<ENTITY> context)
      Description copied from interface: Dialect
      Provides an implementation of InsertAssembler based on the given context.
      Specified by:
      getInsertAssembler in interface Dialect
      Overrides:
      getInsertAssembler in class StandardDialect
      Type Parameters:
      ENTITY - the type of the entity to be handled by the assembler
      Parameters:
      context - the context that holds the information required to create the InsertAssembler
      Returns:
      an instance of InsertAssembler specific to the provided entity context
    • getMultiInsertAssembler

      public <ENTITY> MultiInsertAssembler getMultiInsertAssembler(MultiInsertAssemblerContext<ENTITY> context)
      Description copied from interface: Dialect
      Provides an implementation of MultiInsertAssembler based on the given context.
      Specified by:
      getMultiInsertAssembler in interface Dialect
      Overrides:
      getMultiInsertAssembler in class StandardDialect
      Type Parameters:
      ENTITY - the type of the entity to be handled by the assembler
      Parameters:
      context - the context that holds the information required to create the MultiInsertAssembler
      Returns:
      an instance of MultiInsertAssembler specific to the provided entity context
    • getUpdateAssembler

      public <ENTITY> UpdateAssembler getUpdateAssembler(UpdateAssemblerContext<ENTITY> context)
      Description copied from interface: Dialect
      Provides an implementation of UpdateAssembler based on the given context.
      Specified by:
      getUpdateAssembler in interface Dialect
      Overrides:
      getUpdateAssembler in class StandardDialect
      Type Parameters:
      ENTITY - the type of the entity to be handled by the assembler
      Parameters:
      context - the context that holds the information required to create the UpdateAssembler
      Returns:
      an instance of UpdateAssembler specific to the provided entity context
    • getDeleteAssembler

      public <ENTITY> DeleteAssembler getDeleteAssembler(DeleteAssemblerContext<ENTITY> context)
      Description copied from interface: Dialect
      Provides an implementation of DeleteAssembler based on the given context.
      Specified by:
      getDeleteAssembler in interface Dialect
      Overrides:
      getDeleteAssembler in class StandardDialect
      Type Parameters:
      ENTITY - the type of the entity to be handled by the assembler
      Parameters:
      context - the context that holds the information required to create the DeleteAssembler
      Returns:
      an instance of DeleteAssembler specific to the provided entity context