Package org.apache.oodt.cas.filemgr.structs

Examples of org.apache.oodt.cas.filemgr.structs.Query


   
    public Vector<Hashtable<String, Object>> query(
            Hashtable<String, Object> queryHash,
            Hashtable<String, Object> productTypeHash)
            throws CatalogException {
        Query query = XmlRpcStructFactory.getQueryFromXmlRpc(queryHash);
        ProductType type = XmlRpcStructFactory
                .getProductTypeFromXmlRpc(productTypeHash);
        return XmlRpcStructFactory.getXmlRpcProductList(this.query(query, type));
    }
View Full Code Here


   
    public Hashtable<String, Object> getCatalogQuery(
            Hashtable<String, Object> queryHash,
            Hashtable<String, Object> productTypeHash)
            throws RepositoryManagerException, QueryFormulationException {
        Query query = XmlRpcStructFactory.getQueryFromXmlRpc(queryHash);
        ProductType productType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
        return XmlRpcStructFactory.getXmlRpcQuery(this.getCatalogQuery(query, productType));
    }
View Full Code Here

    ProductType productType;
    ProductPage page;
    try {
      productType = this.config.getFileManagerClient().getProductTypeByName(
          productTypeName);
      page = this.config.getFileManagerClient().pagedQuery(new Query(),
          productType, pageNum);
    } catch (Exception e) {
      e.printStackTrace();
      LOG.log(Level.WARNING, "Unable to obtain products for product type: ["
          + productTypeName + "]: Message: " + e.getMessage());
View Full Code Here

        this.type.getName(), typeBrowserPage));

  }

  private void refreshProductPage() {
    Query query = new Query();
    System.out.println("CALLING REFRESH PRODUCT PAGE, CRITERIA:");
    for (TermQueryCriteria crit : this.criteria) {
      System.out.println(crit);
    }
    query.getCriteria().addAll(this.criteria);
    try {
      this.productPage = fm.getFm().pagedQuery(query, type, this.pageNum);
    } catch (CatalogException e) {
      LOG.log(Level.SEVERE, "Unable to obtain page products: type: ["
          + type.getName() + "]: Reason: " + e.getMessage());
View Full Code Here

      this.totalProducts = (productPage.getTotalPages() - 1) * PAGE_SIZE;
      this.pageNum = this.productPage.getPageNum();

      // get the last page
      ProductPage lastPage = null;
      Query query = new Query();
      query.getCriteria().addAll(this.criteria);

      try {
        lastPage = fm.getFm().pagedQuery(query, this.type,
            this.productPage.getTotalPages());
        this.totalProducts += lastPage.getPageProducts().size();
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.oodt.pcs.query.PCSQuery#buildQuery()
   */
  public Query buildQuery() {
    Query query = new Query();
    RangeQueryCriteria crit = new RangeQueryCriteria();
    crit.setElementName(this.temporalFld);
    crit.setInclusive(true);

    if (this.startDateTime != null) {
      crit.setStartValue(this.startDateTime);
    }

    if (this.endDateTime != null) {
      crit.setEndValue(this.endDateTime);
    }

    query.addCriterion(crit);
    return query;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.oodt.pcs.query.PCSQuery#buildQuery()
   */
  public Query buildQuery() {
    Query query = new Query();
    TermQueryCriteria crit = new TermQueryCriteria(PRODUCT_NAME, this.prodName);

    query.addCriterion(crit);
    return query;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.oodt.pcs.query.PCSQuery#buildQuery()
   */
  public Query buildQuery() {
    Query query = new Query();
    TermQueryCriteria crit = new TermQueryCriteria(OUTPUT_FILES,
        this.origOutputFile);

    query.addCriterion(crit);
    return query;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.oodt.pcs.query.PCSQuery#buildQuery()
   */
  public Query buildQuery() {
    Query query = new Query();
    TermQueryCriteria crit = new TermQueryCriteria(FILENAME, this.fileName);
    query.addCriterion(crit);
    return query;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.oodt.pcs.query.PCSQuery#buildQuery()
   */
  public Query buildQuery() {
    Query query = new Query();
    TermQueryCriteria crit = new TermQueryCriteria(INPUT_FILES,
        this.origInputFile);

    query.addCriterion(crit);
    return query;
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.structs.Query

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.