@Test public void testGetQuery() { Set<String> ids = new HashSet<>(); ids.add("123"); FeeCriteria feeCriteriaQuery = FeeCriteria.builder().tenantId("defualt").id(ids).feeCriteria("2017-2018") .fromDate(123456789l).toDate(23456789l).build(); assertEquals(query, feeQueryBuilder.getQuery(feeCriteriaQuery)); }
public String getQuery(FeeCriteria feeCriteria) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, feeCriteria); log.info("::Query:::::::::"+selectQuery); return selectQuery.toString(); }
FeeQueryBuilder { public String getQuery(FeeCriteria feeCriteria) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, feeCriteria); log.info("::Query:::::::::"+selectQuery); return selectQuery.toString(); } }
FeeQueryBuilder { public String getQuery(FeeCriteria feeCriteria) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, feeCriteria); log.info("::Query:::::::::"+selectQuery); return selectQuery.toString(); }  }
FeeQueryBuilder { public String getQuery(FeeCriteria feeCriteria) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, feeCriteria); log.info("::Query:::::::::"+selectQuery); return selectQuery.toString(); }  String getQuery(FeeCriteria feeCriteria); }
FeeQueryBuilder { public String getQuery(FeeCriteria feeCriteria) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, feeCriteria); log.info("::Query:::::::::"+selectQuery); return selectQuery.toString(); }  String getQuery(FeeCriteria feeCriteria); final static String CREATE_QUERY; final static String UPDATE_QUERY; }