Class H2StatementResolver

java.lang.Object
com.sap.cds.jdbc.h2.H2StatementResolver
All Implemented Interfaces:
StatementResolver

public class H2StatementResolver extends Object implements StatementResolver
  • Constructor Details

    • H2StatementResolver

      public H2StatementResolver()
  • Method Details

    • upsert

      public String upsert(String table, Stream<String> keyColumns, Stream<String> upsertColumns, Stream<String> upsertValues)
      H2: MERGE INTO Updates existing rows, and insert rows that don't exist. If no key column is specified, the primary key columns are used to find the row. If more than one row per new row is affected, an exception is thrown. https://www.h2database.com/html/commands.html#merge_into
      Specified by:
      upsert in interface StatementResolver
    • timeoutClause

      public Optional<String> timeoutClause(int timeoutSeconds)
      Specified by:
      timeoutClause in interface StatementResolver