List of usage examples for javax.persistence Query setMaxResults
Query setMaxResults(int maxResult);
From source file:com.xyz.framework.data.impl.JpaDao.java
/** * ./*from w w w.j av a 2 s . com*/ * * @param page * ?.??orderBy?. * @param jdoQl * hql?. * @param values * ????,?. * * @return , ??. */ @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public Page<T> findPage(final Page<T> page) { Assert.notNull(page, "page?"); String sql = getBaseSql(); sql = dealOrder(sql, page); Query query = entityManager.createQuery(sql); if (page.isAutoCount()) { int totalCount = countJpaQlResult(""); page.setTotalCount(totalCount); } query.setFirstResult(page.getStart()); query.setMaxResults(page.getLimit()); List<T> lt = query.getResultList(); page.setResult(lt); return page; }
From source file:com.xyz.framework.data.impl.JpaDao.java
/** * jdoQL.//from w w w . j a v a 2 s. co m * * @param page * ?.??orderBy?. * @param jdoQl * hql?. * @param values * ????,?. * * @return , ??. */ @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public Page<T> findPage(final Page<T> page, final String jpaQl) { Assert.notNull(page, "page?"); String sql = getBaseSql(); if (jpaQl != null && jpaQl.trim().length() > 0) sql += " where " + jpaQl; sql = dealOrder(sql, page); Query query = entityManager.createQuery(sql); if (page.isAutoCount()) { int totalCount = countJpaQlResult(jpaQl); page.setTotalCount(totalCount); } query.setFirstResult(page.getStart()); query.setMaxResults(page.getLimit()); List<T> lt = query.getResultList(); page.setResult(lt); return page; }
From source file:org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.CriteriaTranslatorImpl.java
protected void addPaging(Query response, Integer firstResult, Integer maxResults) { if (firstResult != null) { response.setFirstResult(firstResult); }//from w ww . j av a 2 s .c o m if (maxResults != null) { response.setMaxResults(maxResults); } }
From source file:com.xyz.framework.data.impl.JpaDao.java
/** * ,??.//from w w w . j av a2 s .c o m */ @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public Page<T> findBy(final Page page, final String propertyName, final Object value) { Assert.hasText(propertyName, "propertyName?"); Assert.notNull(value, "value?"); final String filter = buildPropertyFilterCriterion(propertyName, value, MatchType.EQ); String sql = getBaseSql() + " where " + filter; sql = dealOrder(sql, page); Query query = entityManager.createQuery(sql); if (page.isAutoCount()) { int totalCount = countJpaQlResult(filter); page.setTotalCount(totalCount); } query.setFirstResult(page.getStart()); query.setMaxResults(page.getLimit()); List<T> lt = query.getResultList(); page.setResult(lt); return page; }
From source file:gwap.rest.LocationService.java
/** * Locations a user may visit in the App * @param latitude// ww w. j a v a 2 s . c o m * @param longitude * @param deviceId * @return */ @GET @Produces(MediaType.APPLICATION_JSON) @SuppressWarnings("unchecked") public Response getGameLocations(@QueryParam("currentLatitude") String latitude, @QueryParam("currentLongitude") String longitude, @QueryParam("userid") String deviceId, @QueryParam("topic") Long topic) { if (latitude == null || longitude == null) { return Response.status(Response.Status.BAD_REQUEST).build(); } else { Query locationQuery = entityManager.createNamedQuery("artResource.gameLocations"); locationQuery.setParameter("virtualTaggingTypeId", topic); locationQuery.setParameter("deviceId", deviceId); locationQuery.setMaxResults(10); List<ArtResource> locations = locationQuery.getResultList(); JSONArray gameLocations = new JSONArray(); JSONObject gameLocationJSON; Double min, distance; int minIndex; ArtResource gameLocation; double currentLatitude = Double.parseDouble(latitude); double currentLongitude = Double.parseDouble(longitude); // Berechnet die Orte, die im Laufe des Spiels vom Spieler besucht werden // Dabei wird immer der geographisch nahste Ort zum Spieler, bzw. zum Tatort // zuvor berechnet for (int i = 0; i < 4; i++) { // Das erste Minimum ist der Abstand vom Spieler zur ersten Location gameLocation = locations.get(0); GeoPoint geoPoint = gameLocation.getShownLocation().getSingleGeoPoint(); min = getDistance(currentLatitude, currentLongitude, geoPoint.getLatitude(), geoPoint.getLongitude()); minIndex = 0; // Fuer alle ueberigen Locations: Uberpruefen, ob eine dieser Locations naeher als die erste ist. for (int j = 1; j < locations.size(); j++) { gameLocation = locations.get(j); geoPoint = gameLocation.getShownLocation().getSingleGeoPoint(); distance = getDistance(currentLatitude, currentLongitude, geoPoint.getLatitude(), geoPoint.getLongitude()); if (distance < min) { min = distance; minIndex = j; } } // Konstruiere das JSON-Objekt des gefundenen Ortes gameLocation = locations.get(minIndex); gameLocationJSON = new JSONObject(); gameLocationJSON.put("id", gameLocation.getId()); gameLocationJSON.put("name", gameLocation.getShownLocation().getName()); gameLocationJSON.put("latitude", gameLocation.getShownLocation().getSingleGeoPoint().getLatitude()); gameLocationJSON.put("longitude", gameLocation.getShownLocation().getSingleGeoPoint().getLongitude()); gameLocationJSON.put("distance", min); gameLocationJSON.put("imageData", "/9j/4AAQSkZJRgABAQEBLAEsAAD/7RnuUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAccAgAAAgBtADhCSU0EJQAAAAAAEPb4nvFpKJtEmKJ0gv1yb4Q4QklNA+0AAAAAABABLAAAAAEAAgEsAAAAAQACOEJJTQQmAAAAAAAOAAAAAAAAAAAAAD+AAAA4QklNBA0AAAAAAAQAAAAeOEJJTQQZAAAAAAAEAAAAHjhCSU0D8wAAAAAACQAAAAAAAAAAAQA4QklNBAoAAAAAAAEAADhCSU0nEAAAAAAACgABAAAAAAAAAAI4QklNA/UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklNA/gAAAAAAHAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0EHgAAAAAABAAAAAA4QklNBBoAAAAAA0UAAAAGAAAAAAAAAAAAAAXcAAAI2QAAAAgASQBNAEcAXwAwADEAMAA5AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAjZAAAF3AAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAbnVsbAAAAAIAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY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0JDMTI0OTAzNDcxREUxMUI3MzE4RkMwQ0VEQkFDQjYiPiA8ZXhpZjpJU09TcGVlZFJhdGluZ3M+IDxyZGY6U2VxPiA8cmRmOmxpPjEwMDwvcmRmOmxpPiA8L3JkZjpTZXE+IDwvZXhpZjpJU09TcGVlZFJhdGluZ3M+IDxleGlmOkZsYXNoIGV4aWY6RmlyZWQ9IkZhbHNlIiBleGlmOlJldHVybj0iMCIgZXhpZjpNb2RlPSIyIiBleGlmOkZ1bmN0aW9uPSJGYWxzZSIgZXhpZjpSZWRFeWVNb2RlPSJGYWxzZSIvPiA8eGFwTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/Pv/bAEMABgQFBgUEBgYFBgcHBggKEAoKCQkKFA4PDBAXFBgYFxQWFhodJR8aGyMcFhYgLCAjJicpKikZHy0wLSgwJSgpKP/bAEMBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/AABEIADUAUAMBEQACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAADBQIEBgcIAAH/xAA3EAACAQMDAgMFBQcFAAAAAAABAgMABBEFEiEGMSJBYQcTFFFxMkKBkaEVFiNSYsHRM2SxsvH/xAAZAQADAQEBAAAAAAAAAAAAAAAAAQIDBAX/xAAkEQACAgEDBAMBAQAAAAAAAAAAAQIRIRIxUQMEEyIUI2FB8P/aAAwDAQACEQMRAD8A2uLYEBlOVIyDnvXWmcriLrWLPUeoL/LbQf8AaWhPINYGZt8+VVZNEBbc1WonSea29KNQaSBt/SnYqZ8+HyaLFQKSAC5jXzKsf1FTfsi69X/uT49vMWRbfh2O3d5qDwTWHet+F0a9ql5FYSy0waY53yBsuXY4P8mOSSSfKvFSrc9Ru9jm/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QcKwPHOfkaFFitGRaT0BPbX0V0ouDKjBhmLK5HpirqIrZmVvo2oqApijOP9snP4YpUgyRv+jrrVTH8UsgWNiyBESPBIx5D0qWkyk2i1YdHXllGiQE7VcuBIqNyQAe4/pFLSh2xsNH1NVAEFmfrChpaUFsxjWuhL3VJp2khkjE8qyuI3RUBChRtXdx86TpBVuyGmdF6zpUje7c3URP+nK67eBgHAOP71UvfLCPrsOUtr6Eyi40az8ZzkMBgYxjsaSSRTk2QRgjZIUrj6fqf+KsgZWjGMKXUMT57Sp/z+eKljRctmn5MhRhgYwhBHHPn86VMdrgBa3t4iSi5Qb0AZBBg7/6eeM8eg5/GgB1DeblBB/MAYoEWBOeMPyfKgCE85EcpLFSq8DOMnOKAPrMAqHxeJVPc+YFDAE8mP8A2gAfvMjnGPWgDD7eV2PJPPqaoQxtlDNz2pAXxEqDlUb6oKYBEA2YAAA+QxSAOnhJGSR9cUDDYGxh4sdiN7c/rQBMHgKPCoGABSAi6nd9o0AAYnJGaABM5348qAP/2Q=="); // TODO: Create Url with Access to image gameLocationJSON.put("description", gameLocation.getTeasers().get(0).getDescription()); // Fuege es der Liste aller Gamelocations hinzu gameLocations.add(gameLocationJSON); // Der Standort, von dem weitergesucht wird ist der Standort der letzten Gamelocation currentLatitude = gameLocation.getShownLocation().getSingleGeoPoint().getLatitude(); currentLongitude = gameLocation.getShownLocation().getSingleGeoPoint().getLongitude(); // Die aktuelle Gamelocation kann nicht mehr besucht werden, wird also aus der Liste entfernt locations.remove(minIndex); } return Response.ok(gameLocations.toString(), MediaType.APPLICATION_JSON).build(); } }
From source file:org.apache.ranger.common.RangerSearchUtil.java
public void updateQueryPageSize(Query query, SearchFilter searchCriteria) { int pageSize = super.validatePageSize(searchCriteria.getMaxRows()); query.setMaxResults(pageSize); query.setHint("eclipselink.jdbc.max-rows", "" + pageSize); }
From source file:org.nuxeo.ecm.platform.audit.service.LogEntryProvider.java
public List<?> nativeQuery(String queryString, int pageNb, int pageSize) { Query query = em.createQuery(queryString); if (pageNb > 1) { query.setFirstResult((pageNb - 1) * pageSize); }/*from www. j a v a2s . c o m*/ query.setMaxResults(pageSize); return doPublishIfEntries(query.getResultList()); }
From source file:corner.orm.gae.impl.PaginatedJapEntityService.java
License:asdf
public Iterator find(final Class<?> persistClass, final Object conditions, final String order, final int start, final int offset) { return (Iterator) this.template.execute(new JpaCallback() { @Override/*from w w w . ja v a2 s . c o m*/ public Object doInJpa(EntityManager entityManager) throws PersistenceException { Iterable con = typeCoercer.coerce(conditions, Iterable.class); final Iterator it = con == null ? null : con.iterator(); final StringBuffer sb = buildConditionJPQL(persistClass, it); appendOrder(sb, order); sb.insert(0, "select root." + EntityConstants.ID_PROPERTY_NAME); Query query = entityManager.createQuery(sb.toString()); if (it != null) { int i = 0; while (it.hasNext()) { query.setParameter(String.valueOf(++i), it.next()); } } query.setFirstResult(start); query.setMaxResults(offset); return query.getResultList().iterator(); } }); }
From source file:org.apache.roller.planet.business.jpa.JPAPlanetManagerImpl.java
/** * Get top X subscriptions, restricted by group. *//*from w w w . ja va 2 s .c om*/ public List getTopSubscriptions(PlanetGroup group, int offset, int len) throws PlanetException { List result = null; if (group != null) { Query q = strategy.getNamedQuery("Subscription.getByGroupOrderByInboundBlogsDesc"); q.setParameter(1, group); if (offset != 0) q.setFirstResult(offset); if (len != -1) q.setMaxResults(len); result = q.getResultList(); } else { Query q = strategy.getNamedQuery("Subscription.getAllOrderByInboundBlogsDesc"); if (offset != 0) q.setFirstResult(offset); if (len != -1) q.setMaxResults(len); result = q.getResultList(); } return result; }
From source file:org.makersoft.activerecord.jpa.JPQL.java
@SuppressWarnings("unchecked") public <T> List<T> list() { // String hql = select + BLANK_STRING + "from" + BLANK_STRING + entityName + " as " + alias + BLANK_STRING + joins + BLANK_STRING + where + BLANK_STRING + group + BLANK_STRING + order + BLANK_STRING; StringBuffer hql = new StringBuffer(); hql.append(select);//from www .j a v a2s . c om hql.append(" from "); hql.append(entityName); hql.append(" as "); hql.append(alias); hql.append(joins); hql.append(where); hql.append(group); hql.append(order); System.out.println("===" + hql.toString()); Query query = em().createQuery(hql.toString()); bindParameters(query, parameters); query.setFirstResult(offset); if (limit > 0) { query.setMaxResults(limit); } return query.getResultList(); }