在Ibatis中,select语句引起的缓存处理方法
2012-03-15 16:36
232 查看
ibaits源码中缓存列名的地方在这里:
com.ibatis.sqlmap.engine.mapping.result .AutoResultMap
public
synchronized Object[] getResults(StatementScope statementScope, ResultSet rs)
throws SQLException {
if (allowRemapping || getResultMappings() ==
null) {
initialize(rs);
return super.getResults(statementScope, rs);
}
处理方法:给动态的字段起个别名
com.ibatis.sqlmap.engine.mapping.result .AutoResultMap
public
synchronized Object[] getResults(StatementScope statementScope, ResultSet rs)
throws SQLException {
if (allowRemapping || getResultMappings() ==
null) {
initialize(rs);
return super.getResults(statementScope, rs);
}
处理方法:给动态的字段起个别名
相关文章推荐
- 详细分享IBatis.net缓存的使用方法
- C#解决串口通信中接收数据时延迟处理与缓存处理的方法
- iBatis缓存的使用方法及解释
- JQUERY 提交路径在IE产生缓存的处理方法
- 利用 Spring 和 EHCache 做方法缓存处理
- 静态页,asp页,jsp页,php页不缓存或访问后立即过期的处理方法
- iBatis缓存的使用方法及解释
- iphone ipad 浏览器 后退 浏览器有缓存不执行ajax等方法 处理办法
- iBatis调用返回两个游标的存储过程处理方法
- android三步处理图片缓存的方法
- C#解决串口通信中接收数据时延迟处理与缓存处理的方法
- thymeleaf项目缓存导致无法热启动的处理方法
- 处理getdrawable的方法引起的OOM异常
- JNI学习笔记5——本地方法处理java数组/引用问题/缓存jfieldID/jmethodID
- 由于nvmini.sys引起蓝屏故障的处理方法
- Ibatis查询条件对于特殊字符的处理方法
- thinkphp3.2中开启静态缓存后对404页面的处理方法
- Nginx与浏览器缓存的处理方法
- ARP欺骗引起的网络瘫痪及处理方法
- 让CodeIgniter数据库缓存自动过期的处理的方法