Spring:jdbcDao调用存储过程
来源:互联网 发布:淘宝哪个玩具店好 编辑:程序博客网 时间:2024/05/01 14:58
public Map statisticsByProcedure(final java.sql.Date date) {return (Map) jdbcDao.getJdbcTemplate().execute("{call STATISTICS_FOR_SHITANG(?)}",new CallableStatementCallback() {public Object doInCallableStatement(CallableStatement cs) throws SQLException, DataAccessException {cs.setDate(1, date);ResultSet rs = cs.executeQuery();Map statisticsMap = new HashMap(); // map<PIC,map<WEEKDAY,COUNT>>while (rs.next()) {String C_PID = rs.getString("C_PID");Integer N_WEEKDAY = new Integer(rs.getInt("N_WEEKDAY"));Integer N_COUNT = new Integer(rs.getInt("N_COUNT"));Map countMap = new HashMap(); // map<WEEKDAY,COUNT>countMap.put(N_WEEKDAY, N_COUNT);Map _map = (Map) statisticsMap.get(C_PID); // map<WEEKDAY,COUNT>if (_map == null) {_map = countMap;} else {_map.putAll(countMap);}statisticsMap.put(C_PID, _map);}return statisticsMap;}});}
- Spring:jdbcDao调用存储过程
- spring调用存储过程
- Spring调用存储过程
- spring 调用存储过程
- spring调用存储过程
- spring 调用ORCALE存储过程
- SPRING 调用ORACLE存储过程
- spring HibernateTemplate调用存储过程
- spring HibernateTemplate调用存储过程
- Spring调用MySql存储过程
- spring-jdbc 调用存储过程
- spring jdbc 调用存储过程
- spring mybatis 调用存储过程
- Spring 调用ORACLE存储过程的结果
- 使用 Spring 框架调用 DB2 存储过程
- spring中对存储过程的调用
- 使用Spring Jdbc (4)调用存储过程
- spring调用oracle的存储过程
- JSTL核心标签库
- 关于软件服务
- 哈哈 卸了不爽的vim重装一个
- asp.net事件
- 模式匹配算法详解:KMP算法
- Spring:jdbcDao调用存储过程
- 与失散已久的小学同桌QQ聊天
- 跨页面传送
- 如何判断系统是16位的还是32位的
- 我心目中的Asp.net核心对象
- 跨页面传递
- 一种校正图像失真的工程方法
- 掌握了这几项技术,工作越来越有信心,最重要是的很少加班
- db2常用命令大全