Interface BatchInsertStatement
- All Superinterfaces:
Statement
- All Known Implementing Classes:
BatchInsertStatementDefault
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatch()
int[]
Run the batch insert query.batchInsert
(String primaryKeyName) Run the batch insert query and return the generated ids, if the current driver supports it.Methods inherited from interface org.spincast.plugins.jdbc.statements.Statement
clearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setString, sql
-
Method Details
-
batchInsert
int[] batchInsert()Run the batch insert query. Returns the same informations as the native JDBC specs: -
batchInsert
Run the batch insert query and return the generated ids, if the current driver supports it.Note that some drivers don't support the return of generated keys when using batch inserts. An exception will be throwed if the generated keys cant be retrieved.
-
addBatch
void addBatch()
-