BuildParameterInsertOperator extends InsertOperator { @Override public InsertOperator values(Object... values) { parameter.getValues().add(Arrays.asList(values)); columnValueModel = true; return this; }  @Override InsertOperator columns(String... columns); @Override InsertOperator values(Object... values); @Override InsertOperator values(List<Map<String, Object>> values); @Override InsertOperator value(String column, Object value); @Override SqlRequest getSql(); @Override InsertResultOperator execute();  }
@Test public void testBatchInsert(){ BuildParameterInsertOperator operator = new BuildParameterInsertOperator(); operator.values(Arrays.asList(new HashMap<String, Object>(){ { put("name","123"); put("age",1); put("comment","test"); } },new HashMap<String, Object>(){ { put("name","123"); put("age",1); } })); Assert.assertEquals(operator.getParameter().getColumns().size(),3); Assert.assertEquals(operator.getParameter().getValues().size(),2); Assert.assertEquals(operator.getParameter().getValues().get(0).size(),3); Assert.assertEquals(operator.getParameter().getValues().get(1).size(),3); }