@Test public void testGetViewPointRowSet() { SqlRowSet srs = viewPointDao.getViewPointRowSet(1); assertNotNull(srs); while (srs.next()) { assertNotNull(srs.getString("point_id")); assertNotNull(srs.getString("point_name")); } }
public SqlRowSet getViewPointRowSet(int spaceId) { String sql = "SELECT point_id,point_name FROM t_view_point where space_id =?"; return jdbcTemplate.queryForRowSet(sql, spaceId); }
ViewPointDao { public SqlRowSet getViewPointRowSet(int spaceId) { String sql = "SELECT point_id,point_name FROM t_view_point where space_id =?"; return jdbcTemplate.queryForRowSet(sql, spaceId); } }
ViewPointDao { public SqlRowSet getViewPointRowSet(int spaceId) { String sql = "SELECT point_id,point_name FROM t_view_point where space_id =?"; return jdbcTemplate.queryForRowSet(sql, spaceId); }  }
ViewPointDao { public SqlRowSet getViewPointRowSet(int spaceId) { String sql = "SELECT point_id,point_name FROM t_view_point where space_id =?"; return jdbcTemplate.queryForRowSet(sql, spaceId); }  void getNativeConn(); void addViewPoint(final ViewPoint viewPoint); List<ViewPoint> getImgFiles(final int spaceId); void getImgFile(final int pointId, final OutputStream os); double getReplyRate(int userId); int getSpaceViewPointNum(final int spaceId); int getUserTopicNum2(int userId); SqlRowSet getViewPointRowSet(int spaceId); JdbcTemplate getJdbcTemplate(); }
ViewPointDao { public SqlRowSet getViewPointRowSet(int spaceId) { String sql = "SELECT point_id,point_name FROM t_view_point where space_id =?"; return jdbcTemplate.queryForRowSet(sql, spaceId); }  void getNativeConn(); void addViewPoint(final ViewPoint viewPoint); List<ViewPoint> getImgFiles(final int spaceId); void getImgFile(final int pointId, final OutputStream os); double getReplyRate(int userId); int getSpaceViewPointNum(final int spaceId); int getUserTopicNum2(int userId); SqlRowSet getViewPointRowSet(int spaceId); JdbcTemplate getJdbcTemplate();  }