public.javadoc.org.spincast.plugins.jdbc.statements.BatchInsertStatement.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
BatchInsertStatement (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.jdbc.statements
Interface BatchInsertStatement
-
- All Superinterfaces:
- Statement
- All Known Implementing Classes:
- BatchInsertStatementDefault
public interface BatchInsertStatement
extends Statement
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
addBatch()
int[]
batchInsert()
Run the batch insert query.
List<Long>
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 Detail
-
batchInsert
int[] batchInsert()
Run the batch insert query. Returns the same informations as the
native JDBC specs:
- See Also:
https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#executeBatch()
-
batchInsert
List<Long> batchInsert(String primaryKeyName)
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()
Copyright © 2019. All rights reserved.