public abstract class AbstractBatchInsertQueryExecutor<T> extends Object implements BatchQueryExecutor<T>
Modifier and Type | Field and Description |
---|---|
protected String[] |
generatedKeys |
protected String[] |
insertColumnExpressions |
protected String[] |
insertColumns |
protected MultiIndexFieldMapper<T>[] |
multiIndexFieldMappers |
protected String |
table |
protected String[] |
updateColumns |
Constructor and Description |
---|
AbstractBatchInsertQueryExecutor(String table,
String[] insertColumns,
String[] insertColumnExpressions,
String[] updateColumns,
String[] generatedKeys,
MultiIndexFieldMapper<T>[] multiIndexFieldMappers) |
Modifier and Type | Method and Description |
---|---|
void |
insert(Connection connection,
Collection<T> values,
org.simpleflatmapper.util.CheckedConsumer<PreparedStatement> postExecute) |
protected abstract void |
onDuplicateKeys(StringBuilder sb) |
protected final String table
protected final String[] insertColumns
protected final String[] insertColumnExpressions
protected final String[] updateColumns
protected final String[] generatedKeys
protected final MultiIndexFieldMapper<T>[] multiIndexFieldMappers
public void insert(Connection connection, Collection<T> values, org.simpleflatmapper.util.CheckedConsumer<PreparedStatement> postExecute) throws SQLException
insert
in interface BatchQueryExecutor<T>
SQLException
protected abstract void onDuplicateKeys(StringBuilder sb)
Copyright © 2017. All rights reserved.