Package org.hoteia.qalingo.core.fetchplan

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


  }
   
    public CatalogMaster getMasterCatalogByCode(final String masterCatalogCode, Object... params) {
        Criteria criteria = createDefaultCriteria(CatalogMaster.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(masterCatalogCode)));

        CatalogMaster catalog = (CatalogMaster) criteria.uniqueResult();
        if(catalog != null){
View Full Code Here


    // VIRTUAL CATALOG

    public CatalogVirtual getVirtualCatalogById(final Long virtualCatalogId, Object... params) {
        Criteria criteria = createDefaultCriteria(CatalogVirtual.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
       
        criteria.add(Restrictions.eq("id", virtualCatalogId));
       
        CatalogVirtual catalogVirtual = (CatalogVirtual) criteria.uniqueResult();
        if(catalogVirtual != null){
View Full Code Here

    }
   
  public CatalogVirtual getVirtualCatalogByMarketAreaId(final Long marketAreaId, Object... params) {
        Criteria criteria = createDefaultCriteria(CatalogVirtual.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
       
        criteria.setFetchMode("catalogMaster", FetchMode.JOIN);
        criteria.createAlias("marketArea", "marketArea", JoinType.LEFT_OUTER_JOIN);
        criteria.add(Restrictions.eq("marketArea.id", marketAreaId));
View Full Code Here

  }
 
    public CatalogVirtual getVirtualCatalogByCode(final String virtualCatalogCode, Object... params) {
        Criteria criteria = createDefaultCriteria(CatalogVirtual.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("code", virtualCatalogCode));

        CatalogVirtual catalog = (CatalogVirtual) criteria.uniqueResult();
        if(catalog != null){
View Full Code Here

  private final Logger logger = LoggerFactory.getLogger(getClass());

  public DeliveryMethod getDeliveryMethodById(final Long deliveryMethodId, Object... params) {
        Criteria criteria = createDefaultCriteria(DeliveryMethod.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("id", deliveryMethodId));
        DeliveryMethod deliveryMethod = (DeliveryMethod) criteria.uniqueResult();
        if(deliveryMethod != null){
            deliveryMethod.setFetchPlan(fetchPlan);
View Full Code Here

  }

  public DeliveryMethod getDeliveryMethodByCode(final String code, Object... params) {
        Criteria criteria = createDefaultCriteria(DeliveryMethod.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(code)));
        DeliveryMethod deliveryMethod = (DeliveryMethod) criteria.uniqueResult();
        if(deliveryMethod != null){
            deliveryMethod.setFetchPlan(fetchPlan);
View Full Code Here

        final RequestData requestData = requestUtil.getRequestData(request);
        final Locale locale = requestData.getLocale();
       
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.BRAND_ALL.getKey());

        final List<ProductBrand> productBrands = productService.findAllProductBrands(new FetchPlan(productBrandFetchPlans));
        final List<ProductBrandViewBean> productBrandViewBeans = frontofficeViewBeanFactory.buildListViewBeanProductBrand(requestData, productBrands);
        model.addAttribute(ModelConstants.PRODUCT_BRANDS_VIEW_BEAN, productBrandViewBeans);
       
        // BREADCRUMB
        BreadcrumbViewBean breadcrumbViewBean = new BreadcrumbViewBean();
View Full Code Here

    final ProductBrand productBrand = productService.getProductBrandByCode(brandCode);
    final ProductBrandViewBean productBrandViewBean = frontofficeViewBeanFactory.buildViewBeanProductBrand(requestUtil.getRequestData(request), productBrand);
    model.addAttribute(ModelConstants.PRODUCT_BRAND_VIEW_BEAN, productBrandViewBean);
   
    List<ProductMarketing> productMarketings = productService.findProductMarketingsByBrandCode(brandCode, new FetchPlan(productMarketingFetchPlans));
    List<ProductMarketingViewBean> productMarketingViewBeans = frontofficeViewBeanFactory.buildListViewBeanProductMarketing(requestData, productMarketings);
        model.addAttribute(ModelConstants.PRODUCT_MARKETINGS_VIEW_BEAN, productMarketingViewBeans);

        return modelAndView;
  }
View Full Code Here

    public static FetchPlan productMarketingDefaultFetchPlan(){
        List<SpecificFetchMode> fetchplans = new ArrayList<SpecificFetchMode>();
        fetchplans.add(new SpecificFetchMode(ProductMarketing_.productMarketingType.getName()));
        fetchplans.add(new SpecificFetchMode(ProductMarketing_.attributes.getName()));
        fetchplans.add(new SpecificFetchMode(ProductMarketing_.productSkus.getName()));
        return new FetchPlan(fetchplans);
    }
View Full Code Here

        fetchplans.add(new SpecificFetchMode("assets"));
        fetchplans.add(new SpecificFetchMode("retailerAttributes"));
        fetchplans.add(new SpecificFetchMode("customerRates"));
        fetchplans.add(new SpecificFetchMode("customerComments"));
        fetchplans.add(new SpecificFetchMode("retailerTags"));
        return new FetchPlan(fetchplans);
    }
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.