Package com.google.enterprise.connector.dctm.dfcwrap

Examples of com.google.enterprise.connector.dctm.dfcwrap.IQuery.execute()


          "select r_type_name from dmi_type_info where any r_supertype = '"
          + rootType + "'";
      logger.config("queryString: " + queryString);
      que.setDQL(queryString);

      ICollection collec = que.execute(sess, IQuery.EXECUTE_READ_QUERY);
      while (collec.next()) {
        types.add(collec.getString("r_type_name"));
      }

      try {
View Full Code Here


      }
      queryBuff.append("'");

      IQuery query = clientX.getQuery();
      query.setDQL(queryBuff.toString());
      ICollection users = query.execute(session, IQuery.EXECUTE_READ_QUERY);
      try {
        // The DQL query can only confirm partial matches, and not
        // exact matches. For brevity, we loop over all the users in
        // case we want to log them, and we check domainName.isEmpty()
        // on each iteration.
View Full Code Here

      String queryStr =
          "select group_name from dm_group where any i_all_users_names = '"
          + username + "'";
      IQuery query = clientX.getQuery();
      query.setDQL(queryStr);
      ICollection collecGroups = query.execute(session,
          IQuery.EXECUTE_READ_QUERY);
      try {
        while (collecGroups.next()) {
          String groupName = collecGroups.getString("group_name");
          String groupNamespace = getGroupNamespace(session, groupName);
View Full Code Here

  public ICollection getCurrentVersion(String chronicleId)
      throws RepositoryException {
    IQuery query = traversalManager.getClientX().getQuery();
    query.setDQL(traversalManager.buildVersionsQueryString(checkpoint,
        chronicleId));
    return query.execute(session, IQuery.EXECUTE_READ_QUERY);
  }

  /**
   * Test connectivity to server.  If we have a session and
   * can verify that session isConnected(), return false.
View Full Code Here

      IQuery query = dctmClientX.getQuery();
      Assert.assertNotNull(query);
      Assert.assertTrue(query instanceof DmQuery);
      query.setDQL(DmInitialize.DM_QUERY_STRING_ENABLE);
      ICollection collec = query.execute(session, IQuery.READ_QUERY);
      Assert.assertNotNull(collec);
    } finally {
      if (session != null)
        sessionManager.release(session);
    }
View Full Code Here

    dql.append(" ENABLE (row_based)");

    IQuery query = traversalManager.getClientX().getQuery();
    query.setDQL(dql.toString());
    try {
      ICollection collec = query.execute(session, IQuery.READ_QUERY);
      try {
        while (collec.next()) {
          values.add(
              Value.getStringValue(collec.getString("r_folder_path")));
        }
View Full Code Here

      session = sessionManager.getSession(docbase);

      if (checkpoint.getInsertIndex() == -1) {
        logger.fine("Processing Acls");
        IQuery queryAclToAdd = buildACLQuery(checkpoint);
        collecAclToAdd = queryAclToAdd.execute(session,
            IQuery.EXECUTE_READ_QUERY);
        logger.fine("execution of the query returns a collection of ACLs"
            + " to add");

        IQuery queryAclToModify = buildAclModifyQuery(checkpoint);
View Full Code Here

            IQuery.EXECUTE_READ_QUERY);
        logger.fine("execution of the query returns a collection of ACLs"
            + " to add");

        IQuery queryAclToModify = buildAclModifyQuery(checkpoint);
        collecAclToModify = queryAclToModify.execute(session,
            IQuery.EXECUTE_READ_QUERY);
        logger.fine("execution of the query returns a collection of ACLs"
            + " to modify");

        if ((collecAclToAdd != null && collecAclToAdd.hasNext())
View Full Code Here

              collecAclToModify, checkpoint);
        }
      } else {
        logger.fine("Processing Documents");
        IQuery query = buildAddQuery(checkpoint);
        collecToAdd = query.execute(session, IQuery.EXECUTE_READ_QUERY);
        logger.fine("execution of the query returns a collection of documents"
            + " to add");

        // Only execute the delete query with one of the add queries.
        // TODO: We could treat the delete query as a peer of the others,
View Full Code Here

        // Only execute the delete query with one of the add queries.
        // TODO: We could treat the delete query as a peer of the others,
        // and include it in the sequence.
        if (checkpoint.getInsertIndex() == 0) {
          IQuery queryDocToDel = buildDelQuery(checkpoint);
          collecToDel = queryDocToDel.execute(session,
              IQuery.EXECUTE_READ_QUERY);
          logger.fine("execution of the query returns a collection of " +
              "documents to delete");
        }
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.