public interface BatchPreparedStatementSetter
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBatchSize()
Return the size of the batch.
|
default boolean |
isBatchExhausted(int i)
测试批处理是否继续,返回 true 表示处理。
|
void |
setValues(PreparedStatement ps,
int i)
Set parameter values on the given PreparedStatement.
|
void setValues(PreparedStatement ps, int i) throws SQLException
ps - the PreparedStatement to invoke setter methods oni - index of the statement we're issuing in the batch, starting from 0SQLException - if a SQLException is encountered (i.e. there is no need to catch SQLException)int getBatchSize()
default boolean isBatchExhausted(int i)
Copyright © 2020–2021. All rights reserved.