@Test public void testQuery() { Query query = new Query("ds", List.of(new QueryPart("column", "search"))); assertEquals("ds", query.getDatasourceName()); assertEquals(1, query.numberOfQueryParts()); assertTrue(query.iterator().hasNext()); assertEquals(1, query.getQueryParts().size()); }
public Query(String dbName, List<QueryPart> listOfQueryParts) { this.listOfQueryParts = listOfQueryParts; this.dbName = dbName; }
Query implements Iterable<QueryPart> { public Query(String dbName, List<QueryPart> listOfQueryParts) { this.listOfQueryParts = listOfQueryParts; this.dbName = dbName; } }
Query implements Iterable<QueryPart> { public Query(String dbName, List<QueryPart> listOfQueryParts) { this.listOfQueryParts = listOfQueryParts; this.dbName = dbName; } Query(String dbName, List<QueryPart> listOfQueryParts); }
Query implements Iterable<QueryPart> { public Query(String dbName, List<QueryPart> listOfQueryParts) { this.listOfQueryParts = listOfQueryParts; this.dbName = dbName; } Query(String dbName, List<QueryPart> listOfQueryParts); String getDatasourceName(); @Override Iterator<QueryPart> iterator(); List<QueryPart> getQueryParts(); int numberOfQueryParts(); }
Query implements Iterable<QueryPart> { public Query(String dbName, List<QueryPart> listOfQueryParts) { this.listOfQueryParts = listOfQueryParts; this.dbName = dbName; } Query(String dbName, List<QueryPart> listOfQueryParts); String getDatasourceName(); @Override Iterator<QueryPart> iterator(); List<QueryPart> getQueryParts(); int numberOfQueryParts();  }