/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Other licenses:
 * -----------------------------------------------------------------------------
 * Commercial licenses for this work are available. These replace the above
 * ASL 2.0 and offer limited warranties, support, maintenance, and commercial
 * database integrations.
 *
 * For more information, please visit: https://www.jooq.org/legal/licensing
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */
package org.jooq;

import org.jetbrains.annotations.*;


// ...
// ...
// ...
import static org.jooq.SQLDialect.FIREBIRD;
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.MARIADB;
// ...
import static org.jooq.SQLDialect.POSTGRES;
// ...
import static org.jooq.SQLDialect.YUGABYTEDB;

import java.util.Collection;

/**
 * This type is used for the {@link Update}'s DSL API.
 * <p>
 * Example: <pre><code>
 * DSLContext create = DSL.using(configuration);
 *
 * TableRecord&lt;?&gt; record =
 * create.update(table)
 *       .set(field1, value1)
 *       .set(field2, value2)
 *       .returning(field1)
 *       .fetchOne();
 * </code></pre>
 * <p>
 * This implemented differently for every dialect:
 * <ul>
 * <li>Firebird and Postgres have native support for
 * <code>UPDATE … RETURNING</code> clauses</li>
 * <li>DB2 allows to execute
 * <code>SELECT … FROM FINAL TABLE (UPDATE …)</code></li>
 * </ul>
 * <p>
 * <h3>Referencing <code>XYZ*Step</code> types directly from client code</h3>
 * <p>
 * It is usually not recommended to reference any <code>XYZ*Step</code> types
 * directly from client code, or assign them to local variables. When writing
 * dynamic SQL, creating a statement's components dynamically, and passing them
 * to the DSL API statically is usually a better choice. See the manual's
 * section about dynamic SQL for details: <a href=
 * "https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql">https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql</a>.
 * <p>
 * Drawbacks of referencing the <code>XYZ*Step</code> types directly:
 * <ul>
 * <li>They're operating on mutable implementations (as of jOOQ 3.x)</li>
 * <li>They're less composable and not easy to get right when dynamic SQL gets
 * complex</li>
 * <li>They're less readable</li>
 * <li>They might have binary incompatible changes between minor releases</li>
 * </ul>
 *
 * @author Lukas Eder
 */
public interface UpdateReturningStep<R extends Record> extends UpdateFinalStep<R> {

    /**
     * Configure the <code>UPDATE</code> statement to return all fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    UpdateResultStep<R> returning();

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     * <p>
     * [#5070] Due to an early API design flaw, this method historically returns
     * the type <code>R</code>, not a more generic type <code>Record</code>.
     * This means that only actual columns in <code>R</code> can be returned.
     * For a more generic set of column expressions, use
     * {@link #returningResult(SelectFieldOrAsterisk...)} instead.
     *
     * @param fields Fields to be returned
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    UpdateResultStep<R> returning(SelectFieldOrAsterisk... fields);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     * <p>
     * [#5070] Due to an early API design flaw, this method historically returns
     * the type <code>R</code>, not a more generic type <code>Record</code>.
     * This means that only actual columns in <code>R</code> can be returned.
     * For a more generic set of column expressions, use
     * {@link #returningResult(Collection)} instead.
     *
     * @param fields Fields to be returned
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    UpdateResultStep<R> returning(Collection<? extends SelectFieldOrAsterisk> fields);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @param fields Fields to be returned
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    UpdateResultStep<Record> returningResult(SelectFieldOrAsterisk... fields);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @param fields Fields to be returned
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    UpdateResultStep<Record> returningResult(Collection<? extends SelectFieldOrAsterisk> fields);



    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1> UpdateResultStep<Record1<T1>> returningResult(SelectField<T1> field1);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2> UpdateResultStep<Record2<T1, T2>> returningResult(SelectField<T1> field1, SelectField<T2> field2);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3> UpdateResultStep<Record3<T1, T2, T3>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4> UpdateResultStep<Record4<T1, T2, T3, T4>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5> UpdateResultStep<Record5<T1, T2, T3, T4, T5>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6> UpdateResultStep<Record6<T1, T2, T3, T4, T5, T6>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7> UpdateResultStep<Record7<T1, T2, T3, T4, T5, T6, T7>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8> UpdateResultStep<Record8<T1, T2, T3, T4, T5, T6, T7, T8>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9> UpdateResultStep<Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> UpdateResultStep<Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> UpdateResultStep<Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> UpdateResultStep<Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> UpdateResultStep<Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> UpdateResultStep<Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> UpdateResultStep<Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> UpdateResultStep<Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> UpdateResultStep<Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> UpdateResultStep<Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17, SelectField<T18> field18);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> UpdateResultStep<Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17, SelectField<T18> field18, SelectField<T19> field19);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> UpdateResultStep<Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17, SelectField<T18> field18, SelectField<T19> field19, SelectField<T20> field20);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> UpdateResultStep<Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17, SelectField<T18> field18, SelectField<T19> field19, SelectField<T20> field20, SelectField<T21> field21);

    /**
     * Configure the <code>UPDATE</code> statement to return a list of fields in
     * <code>R</code>.
     * <p>
     * This will return the data <em>after</em> updating and generation of
     * default values and generation of any values produced by triggers.
     *
     * @see UpdateResultStep
     */
    @NotNull @CheckReturnValue
    @Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
    <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> UpdateResultStep<Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> returningResult(SelectField<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField<T14> field14, SelectField<T15> field15, SelectField<T16> field16, SelectField<T17> field17, SelectField<T18> field18, SelectField<T19> field19, SelectField<T20> field20, SelectField<T21> field21, SelectField<T22> field22);



}
