Examples of createQuery()


Examples of com.avaje.ebean.EbeanServer.createQuery()

   
    ResetBasicData.reset();
   
    EbeanServer server = Ebean.getServer(null);
   
    Query<Customer> query = server.createQuery(Customer.class)
      .where().eq("doesNotExist", "this will fail")
      .query();
     
    FutureRowCount<Customer> futureRowCount = server.findFutureRowCount(query, null);
   
View Full Code Here

Examples of com.day.cq.search.QueryBuilder.createQuery()

        predicateMap.put("p.limit", "-1");

        QueryBuilder queryBuilder = resourceResolver.adaptTo(QueryBuilder.class);
        Session session = resourceResolver.adaptTo(Session.class);
        Query query = queryBuilder.createQuery(PredicateGroup.create(predicateMap), session);

        SearchResult result = query.getResult();
        Iterator<Resource> resources = result.getResources();
        while (resources.hasNext()) {
            twitterResources.add(resources.next());
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.Session.createQuery()

      query.append(
        "FROM PortletPreferences IN CLASS com.liferay.portal.ejb.PortletPreferencesHBM WHERE ");
      query.append("layoutId = ?");
      query.append(" ");

      Query q = session.createQuery(query.toString());
      int queryPos = 0;
      q.setString(queryPos++, layoutId);

      Iterator itr = q.list().iterator();
      List list = new ArrayList();
View Full Code Here

Examples of com.esri.gpt.catalog.publication.ResourceProcessor.createQuery()

public Query newQuery(Criteria crt) {
  RequestContext requestContext = RequestContext.extract(null);
  try {
    ResourceProcessor processor = newProcessor(requestContext);
    return processor.createQuery(context, crt);
  } finally {
    requestContext.onExecutionPhaseCompleted();
  }
}
View Full Code Here

Examples of com.github.jmkgreen.morphia.Datastore.createQuery()

                        hasHeader = false;
                        continue;
                    }

                    final String[] columns = s.split(";");
                    List<Meteolog> check = ds.createQuery(Meteolog.class).field("time").equal(getDate("dd-MM-yyyy HH:mm", columns[1], log)).asList();

                    if (check != null && !check.isEmpty()) {
                        log.debug("data exist, continue");
                        lineDouble++;
                        continue;
View Full Code Here

Examples of com.github.jmkgreen.morphia.testdaos.HotelDAO.createQuery()

        hotelDAO.save(hilton);

        List<Hotel> allHotels = hotelDAO.find().asList();
        assertEquals(2, allHotels.size());

        assertEquals(1, hotelDAO.find(hotelDAO.createQuery().offset(1).limit(10)).asList().size());
        assertEquals(1, hotelDAO.find(hotelDAO.createQuery().limit(1)).asList().size());
        assertTrue(hotelDAO.exists("type", Hotel.Type.BUSINESS));
        assertNotNull(hotelDAO.findOne("type", Hotel.Type.LEISURE));

        // try updating
View Full Code Here

Examples of com.google.code.morphia.Datastore.createQuery()

    }
   
    public static void query() throws Exception {
        Datastore ds = getDatastore();
        // find
        List<PureMorphiaUser> users = ds.createQuery(PureMorphiaUser.class)
                .filter("fName", "John").filter("lName", "Smith").asList();
    }
   
}
View Full Code Here

Examples of com.google.enterprise.connector.mock.jcr.MockJcrQueryManager.createQuery()

      try {
        MockRepositoryDocumentStore a = null;
        a = ((MockDmSession) session).getStore();
        MockJcrQueryManager mrQueryMger = new MockJcrQueryManager(a);

        Query q = mrQueryMger.createQuery(this.query, "xpath");

        QueryResult qr = q.execute();
        MockDmCollection co = new MockDmCollection(qr);
        return co;
      } catch (javax.jcr.RepositoryException e) {
View Full Code Here

Examples of com.inadco.hbl.client.HblQueryClient.createQuery()

            /**
             * same as client2 but print the summaries separately (no grouping).
             * This is obviously not terribly useful, the queries have got to
             * have group specification -- -- unless we group up all of it.
             */
            AggregateQuery query = queryClient.createQuery();

            query.setCube(cubeName).addMeasure("impCnt").addMeasure("click");
            query.addClosedSlice("dim1", ids[0], ids[1])/* .addGroupBy("dim1") */;
            AggregateResultSet rs = query.execute();
            closeables.addFirst(rs);
View Full Code Here

Examples of com.jeecms.common.hibernate3.Finder.createQuery()

    }
    if (before != null) {
      f.append(" and bean.time<=:before");
      f.setParam("before", before);
    }
    Query q = f.createQuery(getSession());
    return q.executeUpdate();
  }

  @Override
  protected Class<CmsLog> getEntityClass() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.