Package com.lgx8.common

Examples of com.lgx8.common.KeyStore


      lid = Long.parseLong(id);
    } catch (Exception e1) {
      lid = -1;
    }
   
    Product product = gatewayService.findProductById(lid);
    if(product!=null) {
      root.put("product", product);
      root.put("Product_List_Url", Constants.PRODUCT_LIST_URL);
     
      List<Brand> brands = gatewayService.findBrand();
      if(brands!=null&&brands.size()>0) {
        root.put("brands", brands);
      }
     
      List<ProductProperty> colorSelect = gatewayService.findProductPropertyByCategoryId(Constants.PROPERTYCOLOR);
      if(colorSelect!=null&&colorSelect.size()>0) {
        root.put("colorSelect", colorSelect);
      }
     
      List<ProductProperty> coltheSizeSelect = gatewayService.findProductPropertyByCategoryId(Constants.PROPERTYCLOTHESIZE);
      if(coltheSizeSelect!=null&&coltheSizeSelect.size()>0) {
        root.put("coltheSizeSelect", coltheSizeSelect);
      }
     
      List<ProductProperty> shoeSizeSelect = gatewayService.findProductPropertyByCategoryId(Constants.PROPERTYSHOESIZE);
      if(shoeSizeSelect!=null&&shoeSizeSelect.size()>0) {
        root.put("shoeSizeSelect", shoeSizeSelect);
      }
     
      List<FareWay> farewaySelect = gatewayService.findFare();
      if(farewaySelect!=null&&farewaySelect.size()>0) {
        root.put("farewaySelect", farewaySelect);
      }
     
      List<IPObject> iPObjects = gatewayService.findAllIPObject();
      root.put("iPObjects", iPObjects);
     
      String color = product.getColor();
      String[] colors = color.split(";");
      Map<String, String> colorMap = new HashMap<String, String>();
      for(int i=0;i<colors.length;i++) {
        colorMap.put(colors[i], colors[i]);
      }
      root.put("colorMap", colorMap);
     
      String clothesize = product.getClothessize();
      String[] clothesizes = clothesize.split(";");
      Map<String, String> clothesizeMap = new HashMap<String, String>();
      for(int i=0;i<clothesizes.length;i++) {
        clothesizeMap.put(clothesizes[i], clothesizes[i]);
      }
      root.put("clothesizeMap", clothesizeMap);
     
      String shoesize = product.getShoesize();
      String[] shoesizes = shoesize.split(";");
      Map<String, String> shoesizeMap = new HashMap<String, String>();
      for(int i=0;i<shoesizes.length;i++) {
        shoesizeMap.put(shoesizes[i], shoesizes[i]);
      }
      root.put("shoesizeMap", shoesizeMap);
     
      String fareway = product.getFareway();
      String[] fareways = fareway.split(";");
      Map<String, String> farewayMap = new HashMap<String, String>();
      for(int i=0;i<fareways.length;i++) {
        farewayMap.put(fareways[i], fareways[i]);
      }
View Full Code Here


    this.productPropertyCategoryDao = productPropertyCategoryDao;
  }

  @Transactional
  public ProductProperty createProductProperty(Long categoryId, String value) {
    ProductProperty property = new ProductProperty();
    property.setEnabled(true);
   
    ProductPropertyCategory category = productPropertyCategoryDao.findProductPropertyCategoryById(categoryId);
   
    property.setCategory(category);
    property.setValue(value);
    getHibernateTemplate().persist(property);
    return property;
  }
View Full Code Here

    getHibernateTemplate().update(property);
    return property;
  }

  public ProductProperty findProductPropertyById(Long id) {
    ProductProperty property = getHibernateTemplate().get(ProductProperty.class, id);
    return property;
  }
View Full Code Here

    return property;
  }

  @Transactional
  public void deleteProductProperty(Long id) {
    ProductProperty property = findProductPropertyById(id);
    property.setEnabled(false);
    getHibernateTemplate().update(property);
  }
View Full Code Here

  @Transactional
  public ProductProperty createProductProperty(Long categoryId, String value) {
    ProductProperty property = new ProductProperty();
    property.setEnabled(true);
   
    ProductPropertyCategory category = productPropertyCategoryDao.findProductPropertyCategoryById(categoryId);
   
    property.setCategory(category);
    property.setValue(value);
    getHibernateTemplate().persist(property);
    return property;
View Full Code Here

public class ProductPropertyCategoryDao extends BaseDao implements IProductPropertyCategoryDao {

  @Transactional
  public ProductPropertyCategory createProductPropertyCategory(String name) {
    ProductPropertyCategory category = new ProductPropertyCategory();
    category.setEnabled(true);
    category.setName(name);
    getHibernateTemplate().persist(category);
    return category;
  }
View Full Code Here

  }

  @Transactional
  public void deleteProductPropertyCategory(Long id)
  {
    ProductPropertyCategory category = findProductPropertyCategoryById(id);
    category.setEnabled(false);
    getHibernateTemplate().update(category);
//    getHibernateTemplate().delete(findProductPropertyCategoryById(id));
  }
View Full Code Here

    List<ProductPropertyCategory> categorys = getHibernateTemplate().find(hql);
    return categorys;
  }

  public ProductPropertyCategory findProductPropertyCategoryById(Long id) {
    ProductPropertyCategory category = getHibernateTemplate().get(ProductPropertyCategory.class, id);
    return category;
  }
View Full Code Here

    return info;
  }

  @Transactional
  public ShoppingInfo updateShoppingInfo(Long id, Boolean isUsed) {
    ShoppingInfo info = this.getHibernateTemplate().get(ShoppingInfo.class, id);
    if(info != null)
    {
      info.setIsUsed(isUsed);
      this.getHibernateTemplate().update(info);
    }
    return info;
  }
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
    IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
   
    List<Category> categorys = gatewayService.findAllCategory();
    System.out.println(categorys.get(0).getChilds());
   
    /*AreaCategory areaCategory = new AreaCategory();
    areaCategory.setName("共享良品");
    areaCategory.setDescription("共享良品");
View Full Code Here

TOP

Related Classes of com.lgx8.common.KeyStore

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.