Module org.jooq

Class BatchedConnection

All Implemented Interfaces:
AutoCloseable, Connection, Wrapper

public class BatchedConnection extends DefaultConnection
A batching connection.

This connection buffers consecutive identical prepared statements for DELETE, INSERT, MERGE, UPDATE statements, instead of allowing for them to be executed directly.

Calls to PreparedStatement.executeUpdate() or PreparedStatement.execute() are replaced by PreparedStatement.addBatch(). The update count of such operations is always zero, and cannot be retrieved later on. When any of the following events happen, the batch is executed using Statement.executeBatch():

Author:
Lukas Eder