public class DefaultBatchSetter extends Object implements BatchSetter
Constructor and Description |
---|
DefaultBatchSetter(@NotNull List<Object[]> batchParams,
int[] sqlTypes) |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Gets the size of the batch.
|
void |
setValues(@NotNull PreparedStatement ps,
int i)
Sets parameter values on the given PreparedStatement.
|
public void setValues(@NotNull @NotNull PreparedStatement ps, int i) throws SQLException
BatchSetter
setValues
in interface BatchSetter
ps
- an active PreparedStatement for invoking setter methodsi
- index of the statement inside the batch, starting from 0SQLException
- if an SQLException is encountered while trying to set values (no need to catch)public int getBatchSize()
BatchSetter
getBatchSize
in interface BatchSetter
Copyright © 2021. All rights reserved.