private Attraction extractAtraction(ResultSet rs) throws SQLException { Attraction attraction = new Attraction(); attraction.setId(rs.getInt(DbTables.Attraction.ID)); attraction.setTitle(rs.getString(DbTables.Attraction.TITLE)); attraction.setDescription(rs.getString(DbTables.Attraction.DESC)); attraction.setHeight(rs.getInt(DbTables.Attraction.HEIGHT)); attraction.setImage(rs.getString(DbTables.Attraction.PICTURE)); attraction.setAdultPrice(rs.getInt(DbTables.Attraction.ADULT_PRICE)); attraction.setChildPrice(rs.getInt(DbTables.Attraction.CHILD_PRICE)); return attraction; }