Class OnConflict
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.jdbc.sql.conflict.OnConflict
Builds the
UPDATE SET column=?, ... action that follows ON CONFLICT (...) DO in an upsert statement.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectParameterValues(List<Object> values) Appends the values for this part's?parameters to the list in order; adds nothing by default.voidcollectSqlFragment(CodeWriter writer) Writes this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.Adds acolumn=?assignment with a null parameter value.Adds acolumn=?assignment with the given parameter value.Methods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
-
Constructor Details
-
OnConflict
public OnConflict()
-
-
Method Details
-
set
Adds acolumn=?assignment with the given parameter value. -
set
Adds acolumn=?assignment with a null parameter 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
-
collectParameterValues
Description copied from class:SqlPartAppends the values for this part's?parameters to the list in order; adds nothing by default.- Overrides:
collectParameterValuesin classSqlPart
-