@Test public void testDefaultSelector() { final ClassType studentType = provider.getClassType("Student"); final ClassType studentSectionAssociationType = provider.getClassType("StudentSectionAssociation"); final SemanticSelector selector = generateDefaultSelectorMap(); final Map<Type, SelectorQueryPlan> queryPlan = defaultSelectorQueryEngine.assembleQueryPlan(selector); assertNotNull(queryPlan); SelectorQueryPlan plan = queryPlan.get(studentType); assertFalse("Should be false", plan.getIncludeFields().isEmpty()); assertTrue("Should be true", plan.getExcludeFields().isEmpty()); assertFalse("Should be false", plan.getChildQueryPlans().isEmpty()); SelectorQuery childQuery = (SelectorQuery) plan.getChildQueryPlans().get(0); SelectorQueryPlan childPlan = childQuery.get(studentSectionAssociationType); assertNotNull("Should not be null", childPlan.getQuery()); }
@Override public SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector) { return buildQueryPlan(semanticSelector); }
DefaultSelectorQueryEngine implements SelectorQueryEngine, SelectorQueryVisitor { @Override public SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector) { return buildQueryPlan(semanticSelector); } }
DefaultSelectorQueryEngine implements SelectorQueryEngine, SelectorQueryVisitor { @Override public SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector) { return buildQueryPlan(semanticSelector); }  }
DefaultSelectorQueryEngine implements SelectorQueryEngine, SelectorQueryVisitor { @Override public SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector) { return buildQueryPlan(semanticSelector); }  @Override SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector); @Override SelectorQueryPlan visit(SelectorQueryVisitable visitable); SelectorQueryPlan visit(SemanticSelector semanticSelector); SelectorQueryPlan visit(BooleanSelectorElement booleanSelectorElement); SelectorQueryPlan visit(ComplexSelectorElement complexSelectorElement); SelectorQueryPlan visit(IncludeAllSelectorElement includeAllSelectorElement); SelectorQueryPlan visit(IncludeXSDSelectorElement includeXSDSelectorElement); SelectorQueryPlan visit(IncludeDefaultSelectorElement includeDefaultSelectorElement); SelectorQueryPlan visit(EmptySelectorElement emptySelectorElement); }
DefaultSelectorQueryEngine implements SelectorQueryEngine, SelectorQueryVisitor { @Override public SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector) { return buildQueryPlan(semanticSelector); }  @Override SelectorQuery assembleQueryPlan(SemanticSelector semanticSelector); @Override SelectorQueryPlan visit(SelectorQueryVisitable visitable); SelectorQueryPlan visit(SemanticSelector semanticSelector); SelectorQueryPlan visit(BooleanSelectorElement booleanSelectorElement); SelectorQueryPlan visit(ComplexSelectorElement complexSelectorElement); SelectorQueryPlan visit(IncludeAllSelectorElement includeAllSelectorElement); SelectorQueryPlan visit(IncludeXSDSelectorElement includeXSDSelectorElement); SelectorQueryPlan visit(IncludeDefaultSelectorElement includeDefaultSelectorElement); SelectorQueryPlan visit(EmptySelectorElement emptySelectorElement);  }