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
Base class for H2 SQL components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringescapeKeyword(String keyword) Escapes a SQL keyword by wrapping it in double quotes.protected static StringplaceBackTicks(String identifier) Wraps an identifier in backticks for H2 SQL.Methods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
collectParameterValues, collectSqlFragment, getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
-
Constructor Details
-
H2SqlPart
public H2SqlPart()
-
-
Method Details
-
escapeKeyword
Escapes a SQL keyword by wrapping it in double quotes.- Parameters:
keyword- the keyword to escape- Returns:
- the escaped keyword
-
placeBackTicks
Wraps an identifier in backticks for H2 SQL.- Parameters:
identifier- the identifier to wrap- Returns:
- the identifier wrapped in backticks
-