@SuppressWarnings({ "static-access" }) @Test public void getSelectQueryCriteriaTest() { RegistrationUnitSearchCriteria regnUnitSearchCriteria = registrationUnitSearchCriteria.builder().id(1L) .name("Belandur").locality(12L).zone(123L).isActive(true).tenantId("1").build(); String selectQueryCriterias = "SELECT * FROM egmr_registration_unit " + "WHERE tenantId='1' AND id='1' AND name='Belandur' AND locality='12' AND zone='123' AND isActive='true' ORDER BY createdTime ASC ;"; assertEquals(selectQueryCriterias, registrationUnitQueryBuilder.getSelectQuery(regnUnitSearchCriteria)); }
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; }