| java.lang.Object org.springframework.jdbc.core.support.AbstractInterruptibleBatchPreparedStatementSetter
Method Summary | |
public int | getBatchSize() This implementation returns Integer.MAX_VALUE . | final public boolean | isBatchExhausted(int i) This implementation return this instance's current exhaustion flag. | final public void | setValues(PreparedStatement ps, int i) This implementation calls
AbstractInterruptibleBatchPreparedStatementSetter.setValuesIfAvailable and sets this instance's exhaustion flag accordingly. | abstract protected boolean | setValuesIfAvailable(PreparedStatement ps, int i) Check for available values and set them on the given PreparedStatement.
If no values are available anymore, return false .
Parameters: ps - PreparedStatement we'll invoke setter methods on Parameters: i - index of the statement we're issuing in the batch, starting from 0 whether there were values to apply (that is, whether the appliedparameters should be added to the batch and this method should be calledfor a further iteration) throws: SQLException - if a SQLException is encountered(i.e. |
getBatchSize | public int getBatchSize()(Code) | | This implementation returns Integer.MAX_VALUE .
Can be overridden in subclasses to lower the maximum batch size.
|
isBatchExhausted | final public boolean isBatchExhausted(int i)(Code) | | This implementation return this instance's current exhaustion flag.
|
setValuesIfAvailable | abstract protected boolean setValuesIfAvailable(PreparedStatement ps, int i) throws SQLException(Code) | | Check for available values and set them on the given PreparedStatement.
If no values are available anymore, return false .
Parameters: ps - PreparedStatement we'll invoke setter methods on Parameters: i - index of the statement we're issuing in the batch, starting from 0 whether there were values to apply (that is, whether the appliedparameters should be added to the batch and this method should be calledfor a further iteration) throws: SQLException - if a SQLException is encountered(i.e. there is no need to catch SQLException) |
|
|