InterruptibleBatchPreparedStatementSetter
interface, combining the check for available values and setting of those
into a single callback method setValuesIfAvailable.
setValuesIfAvailable
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getBatchSize()
Implements org. This implementation returns |
| public final boolean | isBatchExhausted(int
index of the statement we're issuing in the batch, starting from 0 i)Implements org. This implementation return this instance's current exhaustion flag. |
| public final void | setValues(PreparedStatement
the PreparedStatement to invoke setter methods on ps, int index of the statement we're issuing in the batch, starting from 0 i)Implements org. This implementation calls |
| protected abstract boolean | Returns: whether there were values to apply (that is, whether the applied parameters should be added to the batch and this method should be called for a further iteration)the PreparedStatement we'll invoke setter methods on ps, int index of the statement we're issuing in the batch, starting from 0 i)Check for available values and set them on the given PreparedStatement. |
| exhausted | back to summary |
|---|---|
| private boolean exhausted | |
| AbstractInterruptibleBatchPreparedStatementSetter | back to summary |
|---|---|
| public AbstractInterruptibleBatchPreparedStatementSetter() | |
| getBatchSize | back to summary |
|---|---|
| public int getBatchSize() Implements org. This implementation returns
| |
| isBatchExhausted | back to summary |
|---|---|
| public final boolean isBatchExhausted(int i) Implements org. This implementation return this instance's current exhaustion flag.
| |
| setValues | back to summary |
|---|---|
| public final void setValues(PreparedStatement ps, int i) throws SQLException Implements org. This implementation calls
| |
| setValuesIfAvailable | back to summary |
|---|---|
| protected abstract boolean setValuesIfAvailable(PreparedStatement ps, int i) throws SQLException Check for available values and set them on the given PreparedStatement.
If no values are available anymore, return
| |