java.lang.Object | |
↳ | org.springframework.jdbc.core.support.AbstractInterruptibleBatchPreparedStatementSetter |
Abstract implementation of the InterruptibleBatchPreparedStatementSetter
interface, combining the check for available values and setting of those
into a single callback method setValuesIfAvailable(PreparedStatement, int)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation returns
Integer.MAX_VALUE . | |||||||||||
This implementation return this instance's current exhaustion flag.
| |||||||||||
This implementation calls
setValuesIfAvailable(PreparedStatement, int)
and sets this instance's exhaustion flag accordingly. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check for available values and set them on the given PreparedStatement.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.core.BatchPreparedStatementSetter
| |||||||||||
From interface
org.springframework.jdbc.core.InterruptibleBatchPreparedStatementSetter
|
This implementation returns Integer.MAX_VALUE
.
Can be overridden in subclasses to lower the maximum batch size.
This implementation return this instance's current exhaustion flag.
i | index of the statement we're issuing in the batch, starting from 0 |
---|
This implementation calls setValuesIfAvailable(PreparedStatement, int)
and sets this instance's exhaustion flag accordingly.
ps | the PreparedStatement to invoke setter methods on |
---|---|
i | index of the statement we're issuing in the batch, starting from 0 |
SQLException |
---|
Check for available values and set them on the given PreparedStatement.
If no values are available anymore, return false
.
ps | PreparedStatement we'll invoke setter methods on |
---|---|
i | index of the statement we're issuing in the batch, starting from 0 |
SQLException | if a SQLException is encountered (i.e. there is no need to catch SQLException) |
---|