Knight of the round table

wansong

iBATIS创建视图

http://www.qqread.com/mysql/z341874.html


查询直接store procedure然后IBATIS里访问store procedure easy到了极致,连resultset都不用你自己去封装,直接:

{call P_PPQPWEB_LOGIN.SP_PPQPWEB_LOGIN_CHECKLOGIN
   (
    #{inputUserId},
    #{inputUserPwd},
    #{inputUserIP},
    #{loginCheck,
                       mode=OUT,
                       javaType=java.lang.String,
                       jdbcType=VARCHAR
                  },
                  #{usrCur,
                       mode=OUT,
                       javaType=java.sql.ResultSet,
                       jdbcType=CURSOR,
                       resultMap=loginDBO
                  }
   )
  } 这样一下,你(List)map.get(userCur)一下,这个LIST就已经给你封装好了






{usrCur,
                       mode=OUT,
                       javaType=java.sql.ResultSet,
                       jdbcType=CURSOR,
                       resultMap=loginDBO
                  }

这边有一个OUT你看到了吧?

然后你代码里怎么样你知道吧?

userInfoList = (List<LoginDBO>) userInfoMap.get("usrCur");


com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: FUNCTION rbac-cms.prc_page_result does not exist
http://forums.mysql.com/read.php?46,173826,229449#msg-229449


posted on 2010-09-10 15:20 w@ns0ng 阅读(1164) 评论(0)  编辑  收藏 所属分类: ibatis


只有注册用户登录后才能发表评论。


网站导航: