Examples of query()


Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUser.query()

      System.out.println("["+this.getClass().getSimpleName()+"] Got " + ENTERPRISE_USER
          + " from AppConfig, performing Query...");
      NetId netId=eu.newNetId();
      netId.setPrincipal(principal);
      netId.setDomain(domain);
      List euQueryList=eu.query(netId,p2p);
      if (euQueryList.size()==0) {
        System.out.println("["+this.getClass().getSimpleName()+"] No EnterpriseUser for "+principal+"@"+domain+".");
        return null;
      }
      eu=(EnterpriseUser)euQueryList.get(0);
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword.query()

      Password p = eup.newPassword();
      p.setValue(newPassword);
      p.setType("secure credential");
      p.setEncryption("cleartext");
     
      java.util.List returnedEup = eup.query(eu, p2p);
      if (returnedEup.size() == 0) {
        //create the password
        eup.setPassword(p);
        eup.create(p2p);
        return eup;
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.AsyncIface.query()

    final BlurQuery blurQuery = new BlurQuery();
    Query query = new Query();
    query.setQuery(queryStr);
    blurQuery.setQuery(query);

    asyncIface.query(tableName, blurQuery, new AsyncMethodCallback<Blur.AsyncClient.query_call>() {
      @Override
      public void onError(Exception exception) {
        exception.printStackTrace();
      }
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.query()

      blurQuery.query = new Query();
      blurQuery.query.query = query;
      long start = System.nanoTime();

      Iface client = BlurClient.getClient(connectionStr);
      BlurResults results = client.query(tableName, blurQuery);
      long end = System.nanoTime();
      System.out.println((end - start) / 1000000.0 + " ms " + results.totalResults);
    }
  }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Session.query()

            throws Exception {
        OperationContext queryContext = new OperationContextImpl(null, false, false, false, IncludeRelationships.NONE,
                null, false, null, false, maxHits);

        Session session = clientSession.getSession();
        return session.query(q, searchAllVersions, queryContext);
    }

    public synchronized List<Tree<ObjectType>> getTypeDescendants() throws Exception {
        Session session = clientSession.getSession();
        return session.getTypeDescendants(null, -1, true);
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.DiscoveryServicePort.query()

            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
        DiscoveryServicePort port = fPortProvider.getDiscoveryServicePort();

        try {
            return convert(port.query(repositoryId, statement, searchAllVersions, includeAllowableActions, convert(
                    EnumIncludeRelationships.class, includeRelationships), renditionFilter, maxItems, skipCount,
                    convert(extension)));
        } catch (CmisException e) {
            throw convertException(e);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.server.CmisService.query()

            BigInteger maxItems, BigInteger skipCount, CmisExtensionType extension) throws CmisException {
        CmisService service = null;
        try {
            service = getService(wsContext, repositoryId);

            return convert(service.query(repositoryId, statement, searchAllVersions, includeAllowableActions,
                    convert(IncludeRelationships.class, includeRelationships), renditionFilter, maxItems, skipCount,
                    convert(extension)));
        } catch (Exception e) {
            throw convertException(e);
        } finally {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.spi.DiscoveryService.query()

            @Override
            protected AbstractPageFetcher.Page<QueryResult> fetchPage(long skipCount) {

                // fetch the data
                ObjectList resultList = discoveryService.query(getRepositoryId(), statement, searchAllVersions,
                        ctxt.isIncludeAllowableActions(), ctxt.getIncludeRelationships(),
                        ctxt.getRenditionFilterString(), BigInteger.valueOf(this.maxNumItems),
                        BigInteger.valueOf(skipCount), null);

                // convert query results
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor.query()

            BigInteger maxItems, BigInteger skipCount) {
        TypeManager tm = getTypeManager(repositoryId);
        ObjectStore objectStore = getObjectStore(repositoryId);

        InMemoryQueryProcessor queryProcessor = new InMemoryQueryProcessor();
        ObjectList objList = queryProcessor.query(tm, objectStore, user, repositoryId, statement, searchAllVersions,
                includeAllowableActions, includeRelationships, renditionFilter, maxItems, skipCount);

   //     LOG.debug("Query result, number of matching objects: " + objList.getNumItems());
        return objList;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.server.support.query.CmisQlStrictParser.query()

        TokenSource lexer = new CmisQlStrictLexer(input);
        TokenStream tokens = new CommonTokenStream(lexer);
        CmisQlStrictParser parser = new CmisQlStrictParser(tokens);
        CommonTree parserTree; // the ANTLR tree after parsing phase

        query_return parsedStatement = parser.query();
//        if (parser.errorMessage != null) {
//            throw new RuntimeException("Cannot parse query: " + statement + " (" + parser.errorMessage + ")");
//        }
        parserTree = (CommonTree) parsedStatement.getTree();
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.