}
private static void insertRecords(final HConnection connection,
final int cnt) throws HBqlException {
HPreparedStatement stmt = connection.prepareStatement("insert into tab4 " +
"(keyval, val1, val2, val3, val4) values " +
"(:key, :val1, :val2, :val3, :val4)");
for (int i = 0; i < cnt; i++) {
int val = 10 + i;
final String keyval = Util.getZeroPaddedNonNegativeNumber(i, 15);
stmt.setParameter("key", keyval);
stmt.setParameter("val1", Util.getZeroPaddedNonNegativeNumber(val * 100, 15));
stmt.setParameter("val2", val);
stmt.setParameter("val3", randomVal.nextInt());
stmt.setParameter("val4", (i % 2) == 0);
stmt.execute();
}
}