org.skife.jdbi
Interface Batch


public interface Batch

Represents a batch of arbitrary statements to be executed together, see JDBC batched statements


Method Summary
 Batch add(java.lang.String statement)
          A statement to be executed as part of the batch
 Batch addAll(java.util.Collection statements)
          Add statements en masse
 int[] execute()
          Execute all of the statements in this batch and clear the batch
 

Method Detail

add

Batch add(java.lang.String statement)
A statement to be executed as part of the batch

Parameters:
statement - direct sql, no parameters, no named statements

addAll

Batch addAll(java.util.Collection statements)
Add statements en masse

Parameters:
statements - Collection of sql statements

execute

int[] execute()
              throws DBIException
Execute all of the statements in this batch and clear the batch

Returns:
an array of the number of rows modified in each statement
Throws:
DBIException