@Test public void testIncludeXSDSelector() { List<String> ids = new ArrayList<String>(); ids.add(student1.getEntityId()); NeutralQuery constraint = new NeutralQuery(); constraint.addCriteria(new NeutralCriteria("_id", NeutralCriteria.CRITERIA_IN, ids)); List<EntityBody> results = defaultSelectorDocument.aggregate(createQueryPlan("Student", getIncludeXSDPlan()), constraint); assertNotNull("Should not be null", results); assertEquals("Should match", 1, results.size()); EntityBody body = results.get(0); assertEquals("Should match", 3, body.keySet().size()); assertTrue("Should be true", body.containsKey("name")); }
@Override public List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint) { return executeQueryPlan(selectorQuery, constraint, new ArrayList<EntityBody>(), new Stack<Type>(), true, new MyCounter()); }
DefaultSelectorDocument implements SelectorDocument { @Override public List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint) { return executeQueryPlan(selectorQuery, constraint, new ArrayList<EntityBody>(), new Stack<Type>(), true, new MyCounter()); } }
DefaultSelectorDocument implements SelectorDocument { @Override public List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint) { return executeQueryPlan(selectorQuery, constraint, new ArrayList<EntityBody>(), new Stack<Type>(), true, new MyCounter()); }  }
DefaultSelectorDocument implements SelectorDocument { @Override public List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint) { return executeQueryPlan(selectorQuery, constraint, new ArrayList<EntityBody>(), new Stack<Type>(), true, new MyCounter()); }  @Override List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint); List<EntityBody> getEntitySubList(List<EntityBody> list, String field, String value); }
DefaultSelectorDocument implements SelectorDocument { @Override public List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint) { return executeQueryPlan(selectorQuery, constraint, new ArrayList<EntityBody>(), new Stack<Type>(), true, new MyCounter()); }  @Override List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint); List<EntityBody> getEntitySubList(List<EntityBody> list, String field, String value); static final int EMBEDDED_DOCUMENT_LIMIT; }