@SuppressWarnings({ "static-access" }) @Test public void getSelectQueryWithIsActiveTest() { RegistrationUnitSearchCriteria regnUnitSearchWithIsActive = registrationUnitSearchCriteria.builder() .tenantId("1").isActive(true).build(); String selectQueryWithIsActive = "SELECT * FROM egmr_registration_unit WHERE tenantId='1' AND isActive='true' ORDER BY createdTime ASC ;"; assertEquals(selectQueryWithIsActive, registrationUnitQueryBuilder.getSelectQuery(regnUnitSearchWithIsActive)); }
public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); } }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria); String getIdNextValForRegnUnit(); String getCreateQuery(); String getUpdateQuery(); }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria); String getIdNextValForRegnUnit(); String getCreateQuery(); String getUpdateQuery(); final String BASEQUERY; }