Class InsertValue
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.sql.h2.H2SqlPart
com.northconcepts.datapipeline.sql.h2.InsertValue
Represents a column-value pair for H2 insert statements.
-
Constructor Summary
ConstructorsConstructorDescriptionInsertValue(String columnName) Constructs an insert value with the specified column name and null value.InsertValue(String columnName, Object value) Constructs an insert value with the specified column name and value. -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectSqlFragment(CodeWriter writer) Writes this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.Returns the column name.getValue()Returns the value.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
-
InsertValue
Constructs an insert value with the specified column name and value.- Parameters:
columnName- the column namevalue- the value to insert
-
InsertValue
Constructs an insert value with the specified column name and null value.- Parameters:
columnName- the column name
-
-
Method Details
-
getColumnName
Returns the column name.- Returns:
- the column name
-
getValue
Returns the value.- Returns:
- the value
-
collectSqlFragment
Description copied from class:SqlPartWrites this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.- Specified by:
collectSqlFragmentin classSqlPart
-