Interface BatchInsertStatement

All Superinterfaces:
Statement
All Known Implementing Classes:
BatchInsertStatementDefault

public interface BatchInsertStatement extends Statement
  • Method Details

    • batchInsert

      int[] batchInsert()
      Run the batch insert query. Returns the same informations as the native JDBC specs:
    • 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()