@Test public void test_query_with_tenantid() { LamsConfigurationGetRequest request = new LamsConfigurationGetRequest(); request.setTenantId("1"); StringBuffer query = new StringBuffer(BASE_QUERY); prepareQueryWithParams(query, request); Map params = new HashMap(); assertEquals(query.toString(), lamsConfigurationQueryBuilder.getQuery(request, params)); assertEquals(1, params.size() - 2); }
@SuppressWarnings("rawtypes") public String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, params, lamsConfigurationGetRequest); addOrderByClause(selectQuery, lamsConfigurationGetRequest); addPagingClause(selectQuery, params, lamsConfigurationGetRequest); logger.info("Query : " + selectQuery); return selectQuery.toString(); }
LamsConfigurationQueryBuilder { @SuppressWarnings("rawtypes") public String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, params, lamsConfigurationGetRequest); addOrderByClause(selectQuery, lamsConfigurationGetRequest); addPagingClause(selectQuery, params, lamsConfigurationGetRequest); logger.info("Query : " + selectQuery); return selectQuery.toString(); } }
LamsConfigurationQueryBuilder { @SuppressWarnings("rawtypes") public String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, params, lamsConfigurationGetRequest); addOrderByClause(selectQuery, lamsConfigurationGetRequest); addPagingClause(selectQuery, params, lamsConfigurationGetRequest); logger.info("Query : " + selectQuery); return selectQuery.toString(); }  }
LamsConfigurationQueryBuilder { @SuppressWarnings("rawtypes") public String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, params, lamsConfigurationGetRequest); addOrderByClause(selectQuery, lamsConfigurationGetRequest); addPagingClause(selectQuery, params, lamsConfigurationGetRequest); logger.info("Query : " + selectQuery); return selectQuery.toString(); }  @SuppressWarnings("rawtypes") String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params); }
LamsConfigurationQueryBuilder { @SuppressWarnings("rawtypes") public String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params) { StringBuilder selectQuery = new StringBuilder(BASE_QUERY); addWhereClause(selectQuery, params, lamsConfigurationGetRequest); addOrderByClause(selectQuery, lamsConfigurationGetRequest); addPagingClause(selectQuery, params, lamsConfigurationGetRequest); logger.info("Query : " + selectQuery); return selectQuery.toString(); }  @SuppressWarnings("rawtypes") String getQuery(LamsConfigurationGetRequest lamsConfigurationGetRequest, Map params);  }