本文整理了Java中com.salesmanager.core.model.reference.zone.ZoneDescription
类的一些代码示例,展示了ZoneDescription
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneDescription
类的具体详情如下:
包路径:com.salesmanager.core.model.reference.zone.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);
}
内容来源于网络,如有侵权,请联系作者删除!