public Object mapRow(ResultSet rs, int rowNum) throws SQLException { Community community = new Community(); community.id = Long.valueOf(rs.getInt("community_id")); community.copyright = rs.getString("copyright_text"); community.shortDescription = rs.getString("short_description"); community.name = rs.getString("name"); community.introductoryText = rs.getString("introductory_text"); community.sideBarText = rs.getString("side_bar_text"); community.logoId = rs.getLong("logo_bitstream_id"); return community; }