com.salesmanager.core.model.reference.zone.ZoneDescription类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中com.salesmanager.core.model.reference.zone.ZoneDescription类的一些代码示例,展示了ZoneDescription类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneDescription类的具体详情如下:
包路径:com.salesmanager.core.model.reference.zone.ZoneDescription
类名称:ZoneDescription

ZoneDescription介绍

暂无

代码示例

代码示例来源:origin: shopizer-ecommerce/shopizer

public ZoneDescription(Zone zone, Language language, String name) {
  setZone(zone);
  setLanguage(language);
  setName(name);
}

代码示例来源:origin: shopizer-ecommerce/shopizer

Map<String,String> e = (Map<String,String>)z;
String zoneCode = e.get("zoneCode");
ZoneDescription zoneDescription = new ZoneDescription();
zoneDescription.setLanguage(l);
zoneDescription.setName(e.get("zoneName"));
Zone zone = null;
List<ZoneDescription> descriptions = null;

代码示例来源:origin: shopizer-ecommerce/shopizer

private void createZones() throws ServiceException {
  LOGGER.info(String.format("%s : Populating Zones ", name));
  try {
     Map<String,Zone> zonesMap = new HashMap<String,Zone>();
     zonesMap = zonesLoader.loadZones("reference/zoneconfig.json");
     
     for (Map.Entry<String, Zone> entry : zonesMap.entrySet()) {
        String key = entry.getKey();
        Zone value = entry.getValue();
        if(value.getDescriptions()==null) {
          LOGGER.warn("This zone " + key + " has no descriptions");
          continue;
        }
        
        List<ZoneDescription> zoneDescriptions = value.getDescriptions();
        value.setDescriptons(null);
        zoneService.create(value);
        
        for(ZoneDescription description : zoneDescriptions) {
          description.setZone(value);
          zoneService.addDescription(value, description);
        }
     }
   } catch (Exception e) {
     
     throw new ServiceException(e);
   }
}

代码示例来源:origin: shopizer-ecommerce/shopizer

zone.setName(description.getName());
zones.put(zone.getCode(), zone);

代码示例来源:origin: shopizer-ecommerce/shopizer

zone.setName(description.getName());

代码示例来源:origin: com.shopizer/sm-core-model

public ZoneDescription(Zone zone, Language language, String name) {
  setZone(zone);
  setLanguage(language);
  setName(name);
}

相关文章