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