@Test public void testGetFinalUpdateById() { final Update update = new Update(); assertNull(update.query); try { update.setQuery(new PathQuery("path3")); assertTrue(update.query.getCurrentQuery().fields().hasNext()); update.addActions(new IncAction("mavar")); final ObjectNode node = update.getFinalUpdateById(); assertEquals(1, node.size()); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
public final ObjectNode getFinalUpdateById() { final ObjectNode node = getFinalUpdate(); node.remove(GLOBAL.QUERY.exactToken()); node.remove(GLOBAL.FILTER.exactToken()); node.remove(GLOBAL.PROJECTION.exactToken()); return node; }
Update extends RequestSingle { public final ObjectNode getFinalUpdateById() { final ObjectNode node = getFinalUpdate(); node.remove(GLOBAL.QUERY.exactToken()); node.remove(GLOBAL.FILTER.exactToken()); node.remove(GLOBAL.PROJECTION.exactToken()); return node; } }
Update extends RequestSingle { public final ObjectNode getFinalUpdateById() { final ObjectNode node = getFinalUpdate(); node.remove(GLOBAL.QUERY.exactToken()); node.remove(GLOBAL.FILTER.exactToken()); node.remove(GLOBAL.PROJECTION.exactToken()); return node; }  }
Update extends RequestSingle { public final ObjectNode getFinalUpdateById() { final ObjectNode node = getFinalUpdate(); node.remove(GLOBAL.QUERY.exactToken()); node.remove(GLOBAL.FILTER.exactToken()); node.remove(GLOBAL.PROJECTION.exactToken()); return node; }  final Update resetActions(); @Override final Update reset(); final Update setMult(final boolean mult); final Update setMult(final JsonNode filterContent); @Override final Update setFilter(final JsonNode filterContent); final Update addActions(final Action... action); final ObjectNode getFinalUpdateById(); final ObjectNode getFinalUpdate(); @Override final List<Action> getActions(); @Override String toString(); }
Update extends RequestSingle { public final ObjectNode getFinalUpdateById() { final ObjectNode node = getFinalUpdate(); node.remove(GLOBAL.QUERY.exactToken()); node.remove(GLOBAL.FILTER.exactToken()); node.remove(GLOBAL.PROJECTION.exactToken()); return node; }  final Update resetActions(); @Override final Update reset(); final Update setMult(final boolean mult); final Update setMult(final JsonNode filterContent); @Override final Update setFilter(final JsonNode filterContent); final Update addActions(final Action... action); final ObjectNode getFinalUpdateById(); final ObjectNode getFinalUpdate(); @Override final List<Action> getActions(); @Override String toString();  }