public class BatchInsertStatementDefault extends StatementBase implements BatchInsertStatement
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BatchInsertStatementDefault(Connection connection,
QueryResultFactory queryResultFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
protected void |
addBatchParams(Map<String,Object> params) |
List<? extends QueryResult> |
batchInsert()
Run the batch insert query.
|
List<InsertResultWithGeneratedKey> |
batchInsertGetGeneratedKeys(String primaryKeyName)
Run the batch insert query and return the generated ids, if current driver supports it.
|
protected List<InsertResultWithGeneratedKey> |
batchInsertPrivate(String primaryKeyName) |
protected int |
getBatchInsertSize() |
protected List<Map<String,Object>> |
getBatchParams() |
addCurrentParamsToStatement, addParam, addParamsToStatement, clearParams, clearSql, clearSql, close, close, copyParamsAndStaticTokensTo, getConnection, getIndexMap, getOriginalQuery, getParams, getParsedQuery, getQueryBuilder, getQueryResultFactory, getSql, getSqlFormmatter, getStaticTokens, parse, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInteger, setLong, setParams, setStaticTokens, setString, sql, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInteger, setLong, setString, sqlpublic BatchInsertStatementDefault(Connection connection, QueryResultFactory queryResultFactory)
public void addBatch()
addBatch in interface BatchInsertStatementprotected int getBatchInsertSize()
public List<? extends QueryResult> batchInsert()
BatchInsertStatementbatchInsert in interface BatchInsertStatementpublic List<InsertResultWithGeneratedKey> batchInsertGetGeneratedKeys(String primaryKeyName)
BatchInsertStatementbatchInsertGetGeneratedKeys in interface BatchInsertStatementprotected List<InsertResultWithGeneratedKey> batchInsertPrivate(String primaryKeyName)
Copyright © 2018. All rights reserved.