comparison src/main/java/de/intevation/lada/query/QueryTools.java @ 1042:3a5a9a0492d1 schema-update

Fixed warnings.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 05 Sep 2016 10:18:38 +0200
parents 1c41c7b8f7c2
children
comparison
equal deleted inserted replaced
1041:f92c96efa976 1042:3a5a9a0492d1
170 catch (JsonException e) { 170 catch (JsonException e) {
171 return null; 171 return null;
172 } 172 }
173 } 173 }
174 174
175 public List<Map<String, Object>> getResultForQuery(MultivaluedMap<String, String> params, Integer qId, String type) { 175 @SuppressWarnings("unchecked")
176 public List<Map<String, Object>> getResultForQuery(
177 MultivaluedMap<String, String> params,
178 Integer qId,
179 String type
180 ) {
176 QueryBuilder<Query> builder = new QueryBuilder<Query>( 181 QueryBuilder<Query> builder = new QueryBuilder<Query>(
177 repository.entityManager("stamm"), 182 repository.entityManager("stamm"),
178 Query.class 183 Query.class
179 ); 184 );
180 builder.and("id", qId); 185 builder.and("id", qId);
209 sql, 214 sql,
210 filters, 215 filters,
211 params, 216 params,
212 repository.entityManager("land")); 217 repository.entityManager("land"));
213 if (q == null) { 218 if (q == null) {
214 return new ArrayList(); 219 return new ArrayList<Map<String, Object>>();
215 } 220 }
216 return prepareResult(q.getResultList(), results); 221 return prepareResult(q.getResultList(), results);
217 } 222 }
218 223
219 public javax.persistence.Query prepareQuery( 224 public javax.persistence.Query prepareQuery(
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)