Package org.hoteia.qalingo.core.fetchplan

Examples of org.hoteia.qalingo.core.fetchplan.FetchPlan


  }
 
  public MarketArea getMarketAreaByCode(final String code, Object... params) {
        Criteria criteria = createDefaultCriteria(MarketArea.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarketArea(criteria, params);
       
        criteria.add(Restrictions.eq("code", handleCodeValue(code)));
       
        MarketArea marketArea = (MarketArea) criteria.uniqueResult();
        if(marketArea != null){
View Full Code Here


        productSkuFetchPlans.add(new SpecificFetchMode(ProductSku_.productMarketing.getName()));
        productSkuFetchPlans.add(new SpecificFetchMode(ProductSku_.attributes.getName()));
        productSkuFetchPlans.add(new SpecificFetchMode(ProductSku_.prices.getName()));
        productSkuFetchPlans.add(new SpecificFetchMode(ProductSku_.prices.getName() + "." + ProductSkuPrice_.currency.getName()));
        productSkuFetchPlans.add(new SpecificFetchMode(ProductSku_.assets.getName()));
        FetchPlan productSkuFetchPlan = new FetchPlan(productSkuFetchPlans);
       
        final CartViewBean cartViewBean = new CartViewBean();
        cartViewBean.setWithPromoCode(true);
        cartViewBean.setWithItemQuantityActions(true);
View Full Code Here

    // PRODUCT MARKETING
 
  public ProductMarketing getProductMarketingById(final Long productMarketingId, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductMarketing.class);
        FetchPlan fetchPlan = handleSpecificProductMarketingFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", productMarketingId));
        ProductMarketing productMarketing = (ProductMarketing) criteria.uniqueResult();
        if(productMarketing != null){
            productMarketing.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return productMarketing;
  }

  public ProductMarketing getProductMarketingByCode(final String productMarketingCode, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductMarketing.class);
        FetchPlan fetchPlan = handleSpecificProductMarketingFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(productMarketingCode)));
        ProductMarketing productMarketing = (ProductMarketing) criteria.uniqueResult();
        if(productMarketing != null){
            productMarketing.setFetchPlan(fetchPlan);
        }
View Full Code Here

   
    // PRODUCT SKU
 
    public ProductSku getProductSkuById(final Long productSkuId, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductSku.class);
        FetchPlan fetchPlan = handleSpecificProductSkuFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", productSkuId));
        ProductSku productSku = (ProductSku) criteria.uniqueResult();
        if(productSku != null){
            productSku.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return productSku;
    }
   
    public ProductSku getProductSkuByCode(final String skuCode, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductSku.class);
        FetchPlan fetchPlan = handleSpecificProductSkuFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(skuCode)));
        ProductSku productSku = (ProductSku) criteria.uniqueResult();
        if(productSku != null){
            productSku.setFetchPlan(fetchPlan);
        }
View Full Code Here

   
    // PRODUCT SKU OPTION
   
    public ProductSkuOptionDefinition getProductSkuOptionDefinitionById(final Long productSkuOptionDefinitionId, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductSkuOptionDefinition.class);
        FetchPlan fetchPlan = handleSpecificProductSkuOptionDefinitionFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", productSkuOptionDefinitionId));
        ProductSkuOptionDefinition productSkuOptionDefinition = (ProductSkuOptionDefinition) criteria.uniqueResult();
        if(productSkuOptionDefinition != null){
            productSkuOptionDefinition.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return productSkuOptionDefinition;
    }

    public ProductSkuOptionDefinition getProductSkuOptionDefinitionByCode(final String productSkuOptionDefinitionCode, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductSkuOptionDefinition.class);
        FetchPlan fetchPlan = handleSpecificProductSkuOptionDefinitionFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(productSkuOptionDefinitionCode)));
        ProductSkuOptionDefinition productSkuOptionDefinition = (ProductSkuOptionDefinition) criteria.uniqueResult();
        if(productSkuOptionDefinition != null){
            productSkuOptionDefinition.setFetchPlan(fetchPlan);
        }
View Full Code Here

   
    // PRODUCT BRAND
   
    public ProductBrand getProductBrandById(final Long productBrandId, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductBrand.class);
        FetchPlan fetchPlan = handleSpecificProductBrandFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", productBrandId));
        ProductBrand productBrand = (ProductBrand) criteria.uniqueResult();
        if(productBrand != null){
            productBrand.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return productBrand;
    }

    public ProductBrand getProductBrandByCode(final String productBrandCode, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductBrand.class);
        FetchPlan fetchPlan = handleSpecificProductBrandFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(productBrandCode)));
        ProductBrand productBrand = (ProductBrand) criteria.uniqueResult();
        if(productBrand != null){
            productBrand.setFetchPlan(fetchPlan);
        }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.fetchplan.FetchPlan

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.