Package org.jrest4guice.persistence.ibatis.annotations

Examples of org.jrest4guice.persistence.ibatis.annotations.ParameterMap


  }

  private static void processPrameterMap(Class<?> clazz,
      StringBuffer parameterMapSb) {
    if (clazz.isAnnotationPresent(ParameterMap.class)) {
      ParameterMap annotation = clazz.getAnnotation(ParameterMap.class);
      String id = annotation.id();
      // 检查当前parameterMap是否已经在其它dao中声明并解析过了
      if (parameterMapIds.contains(id))
        return;
      parameterMapIds.add(id);

      Class<?> parameterClass = annotation.parameterClass();
      String[] parameters = annotation.parameters();

      parameterMapSb.append("  <parameterMap id=\"" + id + "\" class=\""
          + parameterClass.getName() + "\">");
      for (String parameter : parameters) {
        parameterMapSb.append("\n    <parameter property=\""
View Full Code Here

TOP

Related Classes of org.jrest4guice.persistence.ibatis.annotations.ParameterMap

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.