Examples of ProductType


Examples of benchmark.model.ProductType

    values.append(product.getProducer());
    values.append(",");

    //rdf:type for product types
    if(forwardChaining) {
      ProductType pt = product.getProductType();
      while(pt!=null) {
        StringBuffer valuesPTP = getBuffer(tables.productTypeProductInsertCounter++, "producttypeproduct");

        valuesPTP.append("(" + product.getNr() + ",");
        valuesPTP.append(new Integer(pt.getNr()).toString());
        valuesPTP.append(")");

        if(tables.productTypeProductInsertCounter>=insertNumber) {
          tables.productTypeProductInsertCounter = 0;
          valuesPTP.append(";\n");
        }
        tables.productTypeProductDump.append(valuesPTP);

        pt = pt.getParent();
      }
    }
    else {
      StringBuffer valuesPTP = getBuffer(tables.productTypeProductInsertCounter++, "producttypeproduct");
View Full Code Here

Examples of com.ebay.soap.eBLBaseComponents.ProductType

        GetProductSellingPagesCall psp = new GetProductSellingPagesCall(apiContext);
        psp.setDetailLevel(new DetailLevelCodeType[] {DetailLevelCodeType.RETURN_ALL});
        ProductType[] products = new ProductType[asArrayWithProdIds.length];
        int[] csidArray = new int[asArrayWithProdIds.length];
        for(int i = 0; i < asArrayWithProdIds.length; i++) {
            ProductType prod = new ProductType();
            prod.setProductID(asArrayWithProdIds[i].getProductID());
            CharacteristicsSetType cs = new CharacteristicsSetType();
            cs.setAttributeSetID(new Integer(asArrayWithProdIds[i].getAttributeSetID()));
            prod.setCharacteristicsSet(cs);
            products[i] = prod;
            csidArray[i] = asArrayWithProdIds[i].getAttributeSetID();
        }
        psp.setProducts(products);
        psp.setUseCase(ProductUseCaseCodeType.ADD_ITEM);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.cm.ProductType

    productCustomAttribute.setValue("my attribute value");

    ProductOfferId productOfferId = new ProductOfferId();
    productOfferId.setValue("book1");

    ProductType productTypeLevel1Media = new ProductType();
    productTypeLevel1Media.setType(ProductDimensionType.PRODUCT_TYPE_L1);
    productTypeLevel1Media.setValue("Media");

    ProductType productTypeLevel2Books = new ProductType();
    productTypeLevel2Books.setType(ProductDimensionType.PRODUCT_TYPE_L2);
    productTypeLevel2Books.setValue("Books");

    // The value for the bidding category is a fixed ID for the 'Luggage & Bags'
    // category. You can retrieve IDs for categories from the ConstantDataService.
    // See the 'GetProductCategoryTaxonomy' example for more details.
    ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory();
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.ProductType

    productCustomAttribute.setValue("my attribute value");

    ProductOfferId productOfferId = new ProductOfferId();
    productOfferId.setValue("book1");

    ProductType productTypeLevel1Media = new ProductType();
    productTypeLevel1Media.setType(ProductDimensionType.PRODUCT_TYPE_L1);
    productTypeLevel1Media.setValue("Media");

    ProductType productTypeLevel2Books = new ProductType();
    productTypeLevel2Books.setType(ProductDimensionType.PRODUCT_TYPE_L2);
    productTypeLevel2Books.setValue("Books");

    // The value for the bidding category is a fixed ID for the 'Luggage & Bags'
    // category. You can retrieve IDs for categories from the ConstantDataService.
    // See the 'GetProductCategoryTaxonomy' example for more details.
    ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory();
View Full Code Here

Examples of com.google.code.magja.model.product.ProductType

    }

    // set product type
    if (mpp.get("type") != null) {

      ProductType type = ProductTypeEnum.getTypeOf((String) mpp
          .get("type"));

      if (type == null && dependencies) {
        /*
         * means its a type not covered by the enum, so we have to look
View Full Code Here

Examples of com.google.code.magja.model.product.ProductType

    if (productTypes == null)
      return resultList;

    for (Map<String, Object> type : productTypes) {
      ProductType productType = new ProductType();
      for (Map.Entry<String, Object> attribute : type.entrySet())
        productType.set(attribute.getKey(), attribute.getValue());
      resultList.add(productType);
    }

    return resultList;
  }
View Full Code Here

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

        List productTypes = safeGetProductTypes();

        if (productTypes != null && productTypes.size() > 0) {
            for (Iterator i = productTypes.iterator(); i.hasNext();) {
                ProductType type = (ProductType) i.next();
                try {
                    products = client.query(query, type);
                    if (products != null && products.size() > 0) {
                        for (Iterator j = products.iterator(); j.hasNext();) {
                            Product product = (Product) j.next();
                            prodIds.add(product.getProductId());
                        }
                    }
                } catch (CatalogException e) {
                    LOG.log(Level.WARNING, "Exception querying for: ["
                            + type.getName() + "] products: Message: "
                            + e.getMessage());
                }

            }
View Full Code Here

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

     */
    public ProductType getProductTypeByName(String productTypeName)
            throws RepositoryManagerException {
        for (Iterator<String> i = productTypeMap.keySet().iterator(); i.hasNext();) {
            String typeId = (String) i.next();
            ProductType type = (ProductType) productTypeMap.get(typeId);
            if (type.getName().equals(productTypeName)) {
                return type;
            }
        }

        LOG.log(Level.WARNING,
View Full Code Here

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

                    if (productTypeNodeList != null
                            && productTypeNodeList.getLength() > 0) {
                        for (int j = 0; j < productTypeNodeList.getLength(); j++) {
                            Node productTypeNode = productTypeNodeList.item(j);
                            ProductType type = XmlStructFactory
                                    .getProductType(productTypeNode);
                            LOG.log(Level.FINE,
                                    "XMLRepositoryManager: found product type: ["
                                            + type.getName() + "]");
                            productTypeMap.put(type.getProductTypeId(), type);
                        }
                    }
                }
            } catch (URISyntaxException e) {
                LOG.log(Level.WARNING,
View Full Code Here

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

    }

    public static void PostQuery(String product,
            org.apache.oodt.cas.filemgr.structs.Query casQuery) {
        Vector results = new Vector();
        ProductType productType = null;

        try {
            productType = client.getProductTypeById(product);
        } catch (RepositoryManagerException e) {
            System.out.println("Could not access Product Type information");
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.