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

Examples of com.google.enterprise.connector.dctm.dfcwrap.ICollection


    dql.append(" and (");
    dql.append(whereClause);
    dql.append(") ENABLE (return_top 1)");

    query.setDQL(dql.toString());
    ICollection collec = query.execute(sess, IQuery.EXECUTE_READ_QUERY);
    try {
      if (!collec.next()) {
        // TODO: The query is in the logs, but no indication of which
        // WHERE clause failed appears in the ConfigureResponse.
        throw new RepositoryException("[additionalTooRestrictive] " + dql);
      }
    } finally {
      if (collec.getState() != ICollection.DF_CLOSED_STATE) {
        collec.close();
      }
    }
  }
View Full Code Here


        "//*[@jcr:primaryType = nt:resource and @jcr:lastModified >= 'ThisIsATestDate' and @jcr:uuid >= 'ThisIsATestId'] order by @jcr:lastModified, @jcr:uuid");
  }

  public void testSetDQLExecute() {
    query.setDQL(DmInitialize.DM_QUERY_STRING_ENABLE);
    ICollection collec = null;
    try {
      collec = query.execute(sess7, IQuery.READ_QUERY);
    } catch (RepositoryException e) {
      fail(e.getMessage());
    }
View Full Code Here

  public void testGetValue() throws RepositoryException {
    IQuery query = null;
    query = localClient.getQuery();
    query.setDQL(DmInitialize.DM_QUERY_STRING_ENABLE);
    ICollection collec = query.execute(sess7, IQuery.READ_QUERY);
    if (collec.next()) {
      IValue val = collec.getValue("r_object_id");
      Assert.assertTrue(val instanceof MockDmValue);
    }
  }
View Full Code Here

  }

  public void testGetString() throws RepositoryException {
    IQuery query = localClient.getQuery();
    query.setDQL(DmInitialize.DM_QUERY_STRING_ENABLE);
    ICollection collec = query.execute(sess7, IQuery.READ_QUERY);
    if (collec.next()) {
      String rep = collec.getString("jcr:uuid");
      Assert.assertEquals(rep, DmInitialize.DM_ID1);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.dctm.dfcwrap.ICollection

Copyright © 2018 www.massapicom. 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.