Examples of Query()


Examples of org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query()

    @Override
    public <QL> ResultIterator<Map<String, Object>> execute(QL expression, Map<String, Object> parameters) {
        RestAPI restAPI = getGraphDatabaseService().getRestAPI();
        RestCypherQueryEngine restCypherQueryEngine = new RestCypherQueryEngine(restAPI);
        QueryResult<Map<String, Object>> queryResult = restCypherQueryEngine.query(getCypher(expression), parameters);
        final Iterator<Map<String, Object>> iterator = queryResult.iterator();
        return new ResultIterator() {

            @Override
            public boolean hasNext() {
View Full Code Here

Examples of org.nuxeo.ecm.activity.ActivityStreamService.query()

            Map<String, Serializable> parameters = new HashMap<String, Serializable>();
            parameters.put(REPOSITORY_NAME_PARAMETER, getRepositoryName());
            parameters.put(SOCIAL_WORKSPACE_ID_PARAMETER,
                    getSocialWorkspaceId());

            ActivitiesList activities = activityStreamService.query(
                    SocialWorkspaceActivityStreamFilter.ID, parameters,
                    getCurrentPageOffset(), pageSize);
            nextOffset = offset + activities.size();
            activities = activities.filterActivities(getCoreSession());
            pageActivityMessages.addAll(activities.toActivityMessages(
View Full Code Here

Examples of org.nuxeo.ecm.directory.Session.query()

            Map<String, Serializable> relationship = new HashMap<String, Serializable>();
            relationship.put(RELATIONSHIP_FIELD_ACTOR, actorId);
            relationship.put(RELATIONSHIP_FIELD_TARGET, targetId);
            relationship.put(RELATIONSHIP_FIELD_KIND, kind.toString());

            DocumentModelList relationships = relationshipsDirectory.query(relationship);
            if (relationships.isEmpty()) {
                relationshipsDirectory.createEntry(new HashMap<String, Object>(
                        relationship));
                return true;
            } else {
View Full Code Here

Examples of org.ocpsoft.urlbuilder.AddressBuilderPath.query()

   private String buildRedirectOutcome()
   {
      AddressBuilderPath builderPath = AddressBuilder.begin().path(viewId);
      for (Entry<String, List<String>> param : parameters.entrySet()) {
         String[] values = param.getValue().toArray(new String[param.getValue().size()]);
         builderPath.query(param.getKey(), (Object[]) values);
      }
      String url = builderPath.toString();
      return RewriteNavigationHandler.REDIRECT_PREFIX + url;
   }
View Full Code Here

Examples of org.odmg.DCollection.query()

            tx.begin();
            OQLQuery query = odmg.newOQLQuery();
            query.create("select aLotOfArticles from " + Article.class.getName() + " where productGroupId = 4");

            DCollection results = (DCollection) query.execute();
            results = results.query("price > 35");

            // now perform control query
            query = odmg.newOQLQuery();
            query.create(
                    "select aLotOfArticles from "
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.control.PlaceSearch.query()

        LatLngBounds view = LatLngBounds.newInstance();
        view.extend(LatLng.newInstance(47.97430795395781, -121.79454591726969));
        view.extend(LatLng.newInstance(47.152554314370924, -122.50104172828858));

        search.query(model.getLocationQuery(), new GeocoderResultHandler(),
            view);

      } else {

        _stateEvents.fireModelChange(new StateEvent(
View Full Code Here

Examples of org.opencustomer.framework.webapp.util.html.Table.query()

       
        if(stack.isEmpty() || stack.peek().getAttribute(DynamicListAction.TABLE_KEY) == null) {
            throw new IllegalArgumentException("no panel or table found");
        } else {
            Table table = (Table)stack.peek().getAttribute(DynamicListAction.TABLE_KEY);
            table.query(true);
           
            ArrayList<String> header = new ArrayList<String>();
            for(Column column : table.getColumns()) {
                header.add(removeHTML(MessageUtil.message(request, column.getMessageKey())));
            }
View Full Code Here

Examples of org.openeai.moa.ActionableEnterpriseObject.query()

      }
     
      ActionableEnterpriseObject jeo = (ActionableEnterpriseObject)APP_CONFIG.getObject(messageObjectName);
      org.openeai.OpenEaiObject.logger.info("got " + messageObjectName + " from AppConfig, performing Query...");
     
      java.util.List a = jeo.query(lPerson, (PointToPointProducer)APP_CONFIG.getObject(SELF_SERVICE_PRODUCER));
      org.openeai.OpenEaiObject.logger.info("Executed Query...");
     
      StringBuffer results = new StringBuffer();
      if (a.size() == 0) {
        bp_resultsTextArea.setText("No rows found matching the query.");
View Full Code Here

Examples of org.openeai.moa.jmsobjects.JmsEnterpriseObject.query()

        JmsEnterpriseObject jeo = (JmsEnterpriseObject)getAppConfig().getObject(messageObjectName);
        LogService.log(LogService.INFO, "got " + messageObjectName + " from AppConfig, performing Query...");

        // todo - use producer pool
        java.util.List returnedJeos =
          jeo.query(eu,
            (PointToPointProducer)getAppConfig().getObject(producerName));
        LogService.log(LogService.INFO, "got " + returnedJeos.size() + " " + messageObjectName + "'s back.");

        for (int i=0; i<returnedJeos.size(); i++) {
          JmsEnterpriseObject j = (JmsEnterpriseObject)returnedJeos.get(i);
View Full Code Here

Examples of org.openhab.core.persistence.QueryablePersistenceService.query()

            if(appliesToItem(config, item)) {
              PersistenceService service = persistenceServices.get(serviceName);
              if(service instanceof QueryablePersistenceService) {
                QueryablePersistenceService queryService = (QueryablePersistenceService) service;
                FilterCriteria filter = new FilterCriteria().setItemName(item.getName()).setPageSize(1);
                Iterable<HistoricItem> result = queryService.query(filter);
                Iterator<HistoricItem> it = result.iterator();
                if(it.hasNext()) {
                  HistoricItem historicItem = it.next();
                  GenericItem genericItem = (GenericItem) item;
                  genericItem.removeStateChangeListener(this);
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.