public static Query getQueryFromXmlRpc(Map<String, Object> queryHash) { Query query = new Query(); @SuppressWarnings("unchecked") List<QueryCriteria> criteria = getQueryCriteriaListFromXmlRpc((Vector<Map<String, Object>>) queryHash .get("criteria")); query.setCriteria(criteria); return query; }
public static Query getQueryFromXmlRpc(Map<String, Object> queryHash) { Query query = new Query(); @SuppressWarnings("unchecked") List<QueryCriteria> criteria = getQueryCriteriaListFromXmlRpc((Vector<Map<String, Object>>) queryHash .get("criteria")); query.setCriteria(criteria); return query; }
/** * Converts this TypeHandler's element in the given Query into a Query * with the necessary elements and values so the Catalog can be queried. * * NOTE: Original Query is modified . . . the argument query becomes * equal to the returned query (return of query is a convenience). * * @param query Query for which the Catalog Query will be returned * @return A Query with Catalog element values * @throws QueryFormulationException * @throws IllegalAccessException * @throws InstantiationException */ public Query preQueryHandle(Query query) throws QueryFormulationException { LinkedList<QueryCriteria> qcList = new LinkedList<QueryCriteria>(); for (QueryCriteria qc : query.getCriteria()) { qcList.add(this.handleQueryCriteria(qc)); } query.setCriteria(qcList); return query; }
/** * Converts this TypeHandler's element in the given Query into a Query * with the necessary elements and values so the Catalog can be queried. * * NOTE: Original Query is modified . . . the argument query becomes * equal to the returned query (return of query is a convenience). * * @param query Query for which the Catalog Query will be returned * @return A Query with Catalog element values * @throws QueryFormulationException * @throws IllegalAccessException * @throws InstantiationException */ public Query preQueryHandle(Query query) throws QueryFormulationException { LinkedList<QueryCriteria> qcList = new LinkedList<QueryCriteria>(); for (QueryCriteria qc : query.getCriteria()) { qcList.add(this.handleQueryCriteria(qc)); } query.setCriteria(qcList); return query; }