Examples of query()


Examples of net.sf.redmine_mylyn.core.client.IClient.query()

   
    try {
      Query query = Query.fromUrl(repositoryQuery.getUrl(), repository.getCharacterEncoding(), getRepositoryConfiguration(repository));

      IClient client = getClientManager().getClient(repository);
      Issue[] partialIssues = client.query(query, monitor);
     
      for(Issue partialIssue : partialIssues) {
        Date updated = partialIssue.getUpdatedOn();
       
        // UpdatedOn should never be null
View Full Code Here

Examples of net.sf.samtools.SAMFileReader.query()

        SAMFileReader reader = new SAMFileReader(file, index);
        source.reader = reader;
        if (query == null)
          source.it = reader.iterator();
        else
          source.it = reader.query(query.sequence, query.start,
              query.end, true);
      } else {
        index = new File(file.getAbsolutePath() + ".crai");
        if (index.exists()) {
          SAMFileReader reader = new SAMFileReader(file);
View Full Code Here

Examples of net.yacy.document.content.dao.Dao.query()

                                            prefix,
                                            dbuser,
                                            dbpw
                                            );
                   
                    int files = db.writeSurrogates(db.query(0, -1, 100), sb.surrogatesInPath, "fullexport-" + GenericFormatter.SHORT_SECOND_FORMATTER.format(), ppf);
                    prop.put("export", 1);
                    prop.put("export_files", files);
                    db.close();
                } catch (Exception e) {
                    Log.logException(e);
View Full Code Here

Examples of net.yacy.document.content.dao.PhpBB3Dao.query()

                                            prefix,
                                            dbuser,
                                            dbpw
                                            );
                   
                    int files = db.writeSurrogates(db.query(0, -1, 100), sb.surrogatesInPath, "fullexport-" + GenericFormatter.SHORT_SECOND_FORMATTER.format(), ppf);
                    prop.put("export", 1);
                    prop.put("export_files", files);
                    db.close();
                } catch (Exception e) {
                    Log.logException(e);
View Full Code Here

Examples of nu.xom.DocType.query()

        Document doc = new Document(root);
        DocType doctype = new DocType("root");
        doc.setDocType(doctype);
       
        try {
            doctype.query("/");
            fail("Allowed DocType as context node");
        }
        catch (XPathException success) {
            assertNotNull(success.getMessage());
        }
View Full Code Here

Examples of nu.xom.Document.query()

              // run the query
              Nodes results;
              if (xomXPath) {
                if (doc2 == null) throw new UsageException(
                  "A context node is required by XOM's XPath engine, but missing.");
                results = doc2.query((String)query);
              } else if (xquery != null) {
                results = xquery.execute(doc2, null, variables).toNodes();
              } else {
                results = new Nodes(); // disable XQuery for benchmarking
                results.append(doc2);
View Full Code Here

Examples of nu.xom.Element.query()

        Text nonempty2 = new Text("value2");
        parent.appendChild(empty);
        parent.appendChild(nonempty);
        parent.appendChild(nonempty2);
       
        Nodes result = parent.query("node()");
        assertEquals(3, result.size());

        Nodes result2 = parent.query("/*[count(node())=1]");
        assertEquals(1, result2.size());
        assertEquals(parent, result2.get(0));
View Full Code Here

Examples of nu.xom.Node.query()

    public void testSelfAxisWithTextChild() {
       
        Element parent = new Element("parent");
        Node child = new Text("child");
        parent.appendChild(child);
        Nodes result = child.query("self::text()");
        assertEquals(1, result.size());
        assertEquals(child, result.get(0));
       
    }
   
View Full Code Here

Examples of nu.xom.Text.query()

   

    public void testSelfAxisWithUnparentedText() {
       
        Text text = new Text("test");
        Nodes result = text.query("self::text()");
        assertEquals(1, result.size());
        assertEquals(text, result.get(0))
       
    }
   
View Full Code Here

Examples of org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query()

    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
    Reference reference = new Reference();
    try{
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
      ResultSetRow row = queryResult.getResultSet().getRows(0);
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
      return reference;
    } finally {
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.