Class MySqlPreparedStatementInsert
java.lang.Object
com.northconcepts.datapipeline.core.DataObject
com.northconcepts.datapipeline.jdbc.insert.PreparedStatementInsert
com.northconcepts.datapipeline.jdbc.insert.MySqlPreparedStatementInsert
Sample Generated SQL:
INSERT IGNORE INTO tableName (col1, col2, col3) VALUES (?, ?, ?)
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.core.DataObject
id, log, name, TIMESTAMP_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a new, unprepared copy with the same settings;JdbcMultiWriteruses one for each connection.booleanIndicates ifINSERT IGNOREis generated instead of a plainINSERT(default is false).voidprepare(JdbcWriter writer, Record record) Called once, with the first record written, to generate the SQL and create the statement(s).setIgnoreOnError(boolean ignoreOnError) Indicates ifINSERT IGNOREis generated instead of a plainINSERT(default is false).Methods inherited from class com.northconcepts.datapipeline.jdbc.insert.PreparedStatementInsert
addBatch, addExceptionProperties, close, executeBatch, executeUpdate, isBatchSupported, isDebug, setDebug, setInsertStatement, setValues
-
Constructor Details
-
MySqlPreparedStatementInsert
public MySqlPreparedStatementInsert()
-
-
Method Details
-
isIgnoreOnError
public boolean isIgnoreOnError()Indicates ifINSERT IGNOREis generated instead of a plainINSERT(default is false). -
setIgnoreOnError
Indicates ifINSERT IGNOREis generated instead of a plainINSERT(default is false). -
prepare
Description copied from interface:IInsertCalled once, with the first record written, to generate the SQL and create the statement(s).- Specified by:
preparein interfaceIInsert- Overrides:
preparein classPreparedStatementInsert- Throws:
Throwable
-
clone
Description copied from interface:IInsertReturns a new, unprepared copy with the same settings;JdbcMultiWriteruses one for each connection.- Specified by:
clonein interfaceIInsert- Overrides:
clonein classPreparedStatementInsert
-