@Test public void testAddData() { final InsertMultiQuery insert = new InsertMultiQuery(); assertNull(insert.data); insert.addData(JsonHandler.createObjectNode().put("var1", 1)); insert.addData(JsonHandler.createObjectNode().put("var2", "val")); assertEquals(2, insert.data.size()); insert.resetData(); assertEquals(0, insert.data.size()); }
public final InsertMultiQuery addData(final ObjectNode... data) { if (this.data == null) { this.data = JsonHandler.createObjectNode(); } for (final ObjectNode act : data) { if (!act.isMissingNode()) { this.data.setAll(act); } } return this; }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery addData(final ObjectNode... data) { if (this.data == null) { this.data = JsonHandler.createObjectNode(); } for (final ObjectNode act : data) { if (!act.isMissingNode()) { this.data.setAll(act); } } return this; } }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery addData(final ObjectNode... data) { if (this.data == null) { this.data = JsonHandler.createObjectNode(); } for (final ObjectNode act : data) { if (!act.isMissingNode()) { this.data.setAll(act); } } return this; }  }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery addData(final ObjectNode... data) { if (this.data == null) { this.data = JsonHandler.createObjectNode(); } for (final ObjectNode act : data) { if (!act.isMissingNode()) { this.data.setAll(act); } } return this; }  final InsertMultiQuery resetData(); @Override final InsertMultiQuery reset(); final InsertMultiQuery setMult(final boolean mult); final InsertMultiQuery setMult(final JsonNode filterContent); @Override final InsertMultiQuery setFilter(final JsonNode filterContent); final InsertMultiQuery addData(final ObjectNode... data); final InsertMultiQuery setData(final JsonNode dataContent); final InsertMultiQuery parseData(final String data); final ObjectNode getFinalInsert(); @Override final ObjectNode getData(); @Override String toString(); }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery addData(final ObjectNode... data) { if (this.data == null) { this.data = JsonHandler.createObjectNode(); } for (final ObjectNode act : data) { if (!act.isMissingNode()) { this.data.setAll(act); } } return this; }  final InsertMultiQuery resetData(); @Override final InsertMultiQuery reset(); final InsertMultiQuery setMult(final boolean mult); final InsertMultiQuery setMult(final JsonNode filterContent); @Override final InsertMultiQuery setFilter(final JsonNode filterContent); final InsertMultiQuery addData(final ObjectNode... data); final InsertMultiQuery setData(final JsonNode dataContent); final InsertMultiQuery parseData(final String data); final ObjectNode getFinalInsert(); @Override final ObjectNode getData(); @Override String toString();  }