@Test public void testBuildFieldList() { ProjectionSearchRequestBuilder sut = new ProjectionSearchRequestBuilder(); List<String> fields = sut.buildFieldList(); assertEquals(2, fields.size()); assertTrue(fields.contains(FullTextQuery.ID)); assertTrue(fields.contains(FullTextQuery.OBJECT_CLASS)); ArrayList<String> entityFields = new ArrayList<String>(); entityFields.add("foo"); entityFields.add("bar"); sut.setResultFields(entityFields); fields = sut.buildFieldList(); assertEquals(4, fields.size()); assertTrue(fields.contains("foo")); assertTrue(fields.contains("bar")); assertTrue(fields.contains(FullTextQuery.ID)); assertTrue(fields.contains(FullTextQuery.OBJECT_CLASS)); }
protected List<String> buildFieldList() { List<String> parameters = new ArrayList<String>(); if (resultFields != null) { parameters.addAll(resultFields); } parameters.add(FullTextQuery.ID); parameters.add(FullTextQuery.OBJECT_CLASS); return parameters; }
ProjectionSearchRequestBuilder { protected List<String> buildFieldList() { List<String> parameters = new ArrayList<String>(); if (resultFields != null) { parameters.addAll(resultFields); } parameters.add(FullTextQuery.ID); parameters.add(FullTextQuery.OBJECT_CLASS); return parameters; } }
ProjectionSearchRequestBuilder { protected List<String> buildFieldList() { List<String> parameters = new ArrayList<String>(); if (resultFields != null) { parameters.addAll(resultFields); } parameters.add(FullTextQuery.ID); parameters.add(FullTextQuery.OBJECT_CLASS); return parameters; } ProjectionSearchRequestBuilder(); }
ProjectionSearchRequestBuilder { protected List<String> buildFieldList() { List<String> parameters = new ArrayList<String>(); if (resultFields != null) { parameters.addAll(resultFields); } parameters.add(FullTextQuery.ID); parameters.add(FullTextQuery.OBJECT_CLASS); return parameters; } ProjectionSearchRequestBuilder(); @PersistenceContext void setEntityManager(final EntityManager newEntityManager); org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText,
            final String constraints); org.hibernate.search.jpa.FullTextQuery setPaging(final org.hibernate.search.jpa.FullTextQuery query,
            final int from, final int to); String escapeAllButWildcardCharacters(final String s); String escape(final String s); void setResultTypes(final Class< ? >[] theResultTypes); void setSearchStringFormat(final String theSearchStringFormat); void setResultTransformer(final ResultTransformer theResultTransformer); void setQueryParserBuilder(final QueryParserBuilder inQueryParserBuilder); void setResultFields(final List<String> theResultFields); void setAdvancedQueryParserBuilder(final QueryParserBuilder inAdvancedQueryParserBuilder); String getEntityNames(); }
ProjectionSearchRequestBuilder { protected List<String> buildFieldList() { List<String> parameters = new ArrayList<String>(); if (resultFields != null) { parameters.addAll(resultFields); } parameters.add(FullTextQuery.ID); parameters.add(FullTextQuery.OBJECT_CLASS); return parameters; } ProjectionSearchRequestBuilder(); @PersistenceContext void setEntityManager(final EntityManager newEntityManager); org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText,
            final String constraints); org.hibernate.search.jpa.FullTextQuery setPaging(final org.hibernate.search.jpa.FullTextQuery query,
            final int from, final int to); String escapeAllButWildcardCharacters(final String s); String escape(final String s); void setResultTypes(final Class< ? >[] theResultTypes); void setSearchStringFormat(final String theSearchStringFormat); void setResultTransformer(final ResultTransformer theResultTransformer); void setQueryParserBuilder(final QueryParserBuilder inQueryParserBuilder); void setResultFields(final List<String> theResultFields); void setAdvancedQueryParserBuilder(final QueryParserBuilder inAdvancedQueryParserBuilder); String getEntityNames();  }