Class H2SqlPart

java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.sql.h2.H2SqlPart
Direct Known Subclasses:
CreateForeignKey, CreateH2DdlFromSchemaDef, CreateIndex, CreateTable, CreateTableColumn, DropTable, DropTableConstraint, Insert, InsertRow, InsertValue, Upsert

public abstract class H2SqlPart extends SqlPart
Base class for H2 SQL components.
  • Constructor Details

    • H2SqlPart

      public H2SqlPart()
  • Method Details

    • escapeKeyword

      protected static String escapeKeyword(String keyword)
      Escapes a SQL keyword by wrapping it in double quotes.
      Parameters:
      keyword - the keyword to escape
      Returns:
      the escaped keyword
    • placeBackTicks

      protected static String placeBackTicks(String identifier)
      Wraps an identifier in backticks for H2 SQL.
      Parameters:
      identifier - the identifier to wrap
      Returns:
      the identifier wrapped in backticks