Extension of the
BatchPreparedStatementSetter interface,
adding a batch exhaustion check.
This interface allows you to signal the end of a batch rather than
having to determine the exact batch size upfront. Batch size is still
being honored but it is now the maximum size of the batch.
The
InterruptibleBatchPreparedStatementSetter.isBatchExhausted method is called after each call to
InterruptibleBatchPreparedStatementSetter.setValues to determine whether there were some values added,
or if the batch was determined to be complete and no additional values
were provided during the last call to setValues .
Consider extending the
org.springframework.jdbc.core.support.AbstractInterruptibleBatchPreparedStatementSetter base class instead of implementing this interface directly, using a single
setValuesIfAvailable callback method that checks for available
values and sets them, returning whether values have actually been provided.
author: Thomas Risberg author: Juergen Hoeller since: 2.0 See Also: JdbcTemplate.batchUpdate(StringBatchPreparedStatementSetter) See Also: org.springframework.jdbc.core.support.AbstractInterruptibleBatchPreparedStatementSetter |