jodd-db/src/main/java/jodd/db/DbQuery.java
public Q setBatch(final String name, final int[] array, int startingIndex) {
		init();
		final int batchSize = query.getBatchParameterSize(name);

		for (int i = 1; i <= batchSize; i++) {
			final String paramName = name + '.' + i;

			if (startingIndex < array.length) {
				setInteger(paramName, array[startingIndex]);
			} else {
				setNull(paramName, Types.INTEGER);
			}
			startingIndex++;
		}
		return _this();
	}
public Q setBatch(final String name, final int[] array, int startingIndex) {
		init();
		final int batchSize = query.getBatchParameterSize(name);

		for (int i = 1; i <= batchSize; i++) {
			final String paramName = name + '.' + i;

			if (startingIndex < array.length) {
				setInteger(paramName, array[startingIndex]);
			} else {
				setNull(paramName, Types.INTEGER);
			}
			startingIndex++;
		}
		return _this();
	}
Sets batch parameters with given array of values.