ruleMap.put(selectObj.getId(), selectObj);
}
for (Object ele : document.getRootElement().elements("businessRules")) {
Element element = (Element) ele;
BusinessRules businessRules = SqlmappingconfigFactory.eINSTANCE.createBusinessRules();
businessRules.setId(element.attributeValue("id"));
businessRules.setParameterType(element.attributeValue("parameterType"));
businessRules.setRemark(element.attributeValue("remark"));
businessRules.setSqlValue(element.getText());
businessRules.setResultType(element.attributeValue("resultType"));
String classPathString=element.attributeValue("classPath");
if(StringUtil.isNotEmpty(classPathString)){
Class<?> classObj=ReflectUtil.loadClass(classPathString);
if(classObj!=null){
businessRules.setClassPath(classPathString);
ruleClassMap.put(element.attributeValue("id"), classObj);
}
}
ruleMap.put(businessRules.getId(), businessRules);
}
}
}