@Override
    public List<Integer> save(List<Tour> beans, GenericSaveQuery saveGeneric, Connection conn) throws DaoQueryException {
        try {
            return saveGeneric.sendQuery(SAVE_QUERY, conn, Params.fill(beans, (Tour bean) -> {
                Object[] objects = new Object[7];
                objects[0] = bean.getDirection().getIdDirection();
                objects[1] = bean.getDepartDate();
                objects[2] = bean.getDaysCount();
                objects[3] = bean.getPrice();
                objects[4] = bean.getDiscount();
                objects[5] = bean.getTotalSeats();
                objects[6] = bean.getFreeSeats();
                return objects;
            }));
        } catch (DaoException ex) {
            throw new DaoQueryException(ERR_TOUR_SAVE, ex);
        }
    }