@Override
    public List<Integer> save(List<User> beans, GenericSaveQuery saveGeneric, Connection conn) throws DaoQueryException {
        try {
            return saveGeneric.sendQuery(SAVE_QUERY, conn, Params.fill(beans, (User bean) -> {
                Object[] obj = new Object[8];
                obj[0] = bean.getLogin();
                obj[1] = bean.getPassword();
                obj[2] = bean.getEmail();
                obj[3] = bean.getPhone();
                obj[4] = bean.getRole().getIdRole();
                obj[5] = bean.getLanguage();
                obj[6] = bean.getDiscount();
                obj[7] = bean.getBalance();
                return obj;
            }));
        } catch (DaoException ex) {
            throw new DaoQueryException(ERR_USER_SAVE, ex);
        }
    }