@Test public void testSetData() throws InvalidParseOperationException { final InsertMultiQuery insert = new InsertMultiQuery(); assertNull(insert.data); assertEquals(JsonHandler.createObjectNode(), insert.getData()); insert.resetData(); assertNull(insert.data); insert.reset(); assertNull(insert.data); final JsonNode data1 = JsonHandler.createObjectNode().put("var1", 1); final JsonNode data2 = JsonHandler.createObjectNode().put("var2", 2); insert.setData(data1); assertEquals(1, insert.data.size()); assertEquals(JsonHandler.createObjectNode().put("var1", 1), insert.getData()); insert.setData(data2); assertEquals(2, insert.data.size()); insert.reset(); assertEquals(0, insert.data.size()); }
public final InsertMultiQuery setData(final JsonNode dataContent) throws InvalidParseOperationException { if (data == null) { data = JsonHandler.createObjectNode(); } data.setAll((ObjectNode) dataContent); return this; }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery setData(final JsonNode dataContent) throws InvalidParseOperationException { if (data == null) { data = JsonHandler.createObjectNode(); } data.setAll((ObjectNode) dataContent); return this; } }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery setData(final JsonNode dataContent) throws InvalidParseOperationException { if (data == null) { data = JsonHandler.createObjectNode(); } data.setAll((ObjectNode) dataContent); return this; }  }
InsertMultiQuery extends RequestMultiple { public final InsertMultiQuery setData(final JsonNode dataContent) throws InvalidParseOperationException { if (data == null) { data = JsonHandler.createObjectNode(); } data.setAll((ObjectNode) dataContent); 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 setData(final JsonNode dataContent) throws InvalidParseOperationException { if (data == null) { data = JsonHandler.createObjectNode(); } data.setAll((ObjectNode) dataContent); 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();  }