Class InsertRow
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.sql.h2.H2SqlPart
com.northconcepts.datapipeline.sql.h2.InsertRow
Represents a row of values for H2 insert statements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a column-value pair to this row.voidcollectSqlFragment(CodeWriter writer) Writes this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.Returns the list of insert values for this row.Methods inherited from class com.northconcepts.datapipeline.sql.h2.H2SqlPart
escapeKeyword, placeBackTicksMethods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
collectParameterValues, getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
-
Constructor Details
-
InsertRow
public InsertRow()
-
-
Method Details
-
getValues
Returns the list of insert values for this row.- Returns:
- the list of values
-
add
Adds a column-value pair to this row.- Parameters:
columnName- the column namevalue- the value to insert- Returns:
- this instance
-
collectSqlFragment
Description copied from class:SqlPartWrites this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.- Specified by:
collectSqlFragmentin classSqlPart
-