Examples of query()


Examples of org.fundacionctic.su4j.endpoint.SparqlEndpoint.query()

    endpoint.setRequest(req);
    endpoint.setResponse(res);
    if (endpoint.isQuery()) {
      try {
        logger.info("Executing SPARQL query...");
        endpoint.query();
      } catch (Exception e) {
        logger.error(e.getMessage());
        endpoint.renderError(e);
      }
    } else {
View Full Code Here

Examples of org.geotools.map.MapLayer.query()

        Layer layer = map.getLayer(i);

        QueryParam queryParam = new QueryParam();
        queryParam.setGeometry(geometry);
        queryParam.setSpatialFilterType(SpatialFilterType.INTERSECTS);
        FeatureCollection<? extends FeatureType, ? extends Feature> layerFeatureCollection = layer
            .query(queryParam);
        if (layerFeatureCollection != null
            && !layerFeatureCollection.isEmpty()) {
          for (FeatureIterator<? extends Feature> itr = layerFeatureCollection
              .features(); itr.hasNext();) {
View Full Code Here

Examples of org.h2.command.Prepared.query()

        if (sample > 0) {
            buff.append(" LIMIT 1 SAMPLE_SIZE ").append(sample);
        }
        String sql = buff.toString();
        Prepared command = session.prepare(sql);
        ResultInterface result = command.query(0);
        result.next();
        for (int j = 0; j < columns.length; j++) {
            int selectivity = result.currentRow()[j].getInt();
            columns[j].setSelectivity(selectivity);
        }
View Full Code Here

Examples of org.h2.command.dml.Query.query()

                throw DbException.get(ErrorCode.SYNTAX_ERROR_2, "recursive queries without UNION ALL");
            }
            Query left = union.getLeft();
            // to ensure the last result is not closed
            left.disableCache();
            LocalResult r = left.query(0);
            LocalResult result = union.getEmptyResult();
            while (r.next()) {
                result.addRow(r.currentRow());
            }
            Query right = union.getRight();
View Full Code Here

Examples of org.h2.test.db.Db.query()

                        group += ",";
                    }
                    group += new String[] { "A", "B", "C" }[random.nextInt(3)];
                }
                group += " ORDER BY 1, 2, 3";
                List<Map<String, Object>> a = db.query(x + "TEST" + group);
                List<Map<String, Object>> b = db.query(x + "TEST_INDEXED" + group);
                assertEquals(a.toString(), b.toString());
                assertTrue(a.equals(b));
            }
            db.execute("DROP TABLE TEST_INDEXED");
View Full Code Here

Examples of org.hibernate.ogm.datastore.mongodb.query.parsing.nativequery.impl.NativeQueryParser.Query()

public class NativeQueryParserTest {

  @Test
  public void shouldParseSimplifiedFindQuery() {
    NativeQueryParser parser = Parboiled.createParser( NativeQueryParser.class );
    ParsingResult<MongoDBQueryDescriptorBuilder> run =  new RecoveringParseRunner<MongoDBQueryDescriptorBuilder>( parser.Query() )
        .run( "{ \"foo\" : true }");

    MongoDBQueryDescriptor queryDescriptor = run.resultValue.build();

    assertThat( queryDescriptor.getCollectionName() ).isNull();
View Full Code Here

Examples of org.jboss.errai.jpa.sync.client.local.Sync.query()

    statements.add(Stmt.declareFinalVariable("objectClass", Class.class, Stmt.loadLiteral(Object.class)));

    statements.add(Stmt.declareFinalVariable(
            "syncWorker",
            ClientSyncWorker.class,
            Stmt.invokeStatic(ClientSyncWorker.class, "create", syncAnnotation.query(),
                    Stmt.loadVariable("objectClass"), null)));

    statements.add(Stmt.loadVariable("syncWorker").invoke("addSyncCallback", createSyncCallback(ctx)));

    ctx.getTargetInjector().addStatementToEndOfInjector(
View Full Code Here

Examples of org.jboss.test.ejb3.jbas7556.QueryNameSpaceRemote.query()

    * EE.5.15
    */
   public void testModuleName() throws Exception
   {
      QueryNameSpaceRemote bean = (QueryNameSpaceRemote) getInitialContext().lookup("QueryNameSpaceBean/remote");
      String result = bean.query("java:module/ModuleName");
      assertEquals("jbas7556", result);
   }

   public static Test suite() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor.query()

            new ServiceDeploymentDescriptor(mainConfigFileURL);
         ServiceDeploymentDescriptor pdd =
            new ServiceDeploymentDescriptor(persistenceConfigFileURL);

         MBeanConfigurationElement persistenceManagerConfig =
            (MBeanConfigurationElement)pdd.query("service", "PersistenceManager").iterator().next();
         persistenceManagerObjectName = sc.registerAndConfigureService(persistenceManagerConfig);
         overrideAttributes(persistenceManagerObjectName, attrOverrides);
         sc.invoke(persistenceManagerObjectName, "create", new Object[0], new String[0]);
         sc.invoke(persistenceManagerObjectName, "start", new Object[0], new String[0]);
View Full Code Here

Examples of org.jbpm.formbuilder.shared.task.TaskDefinitionService.query()

        RESTIoService restService = new RESTIoService();
        TaskDefinitionService taskService = EasyMock.createMock(TaskDefinitionService.class);
        List<TaskRef> tasks = new ArrayList<TaskRef>();
        tasks.add(new TaskRef());
        tasks.add(new TaskRef());
        EasyMock.expect(taskService.query(EasyMock.eq("somePackage"), EasyMock.eq("someFilter"))).andReturn(tasks).once();
        restService.setTaskService(taskService);
        ServletContext context = EasyMock.createMock(ServletContext.class);
       
        EasyMock.replay(taskService, context);
        Response resp = restService.getIoAssociations("someFilter", "somePackage", context);
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.