[jOOQ/jOOQ#15455] Add InsertSetStep.set(Collection<? extends Record>) and set(Record...)
This commit is contained in:
parent
37e482125c
commit
4540d0ecd7
@ -37,9 +37,12 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
import org.jooq.CheckReturnValue;
|
||||
import org.jooq.Record;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@ -141,6 +144,30 @@ public interface InsertSetMoreStep<R extends Record> extends InsertOnDuplicateSt
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Record record);
|
||||
|
||||
/**
|
||||
* Set values in the <code>INSERT</code> statement.
|
||||
* <p>
|
||||
* This is convenience for multiple calls to {@link #set(Record)} and
|
||||
* {@link InsertSetMoreStep#newRecord()}.
|
||||
*
|
||||
* @see #set(Record)
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Record... records);
|
||||
|
||||
/**
|
||||
* Set values in the <code>INSERT</code> statement.
|
||||
* <p>
|
||||
* This is convenience for multiple calls to {@link #set(Record)} and
|
||||
* {@link InsertSetMoreStep#newRecord()}.
|
||||
*
|
||||
* @see #set(Record)
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Collection<? extends Record> records);
|
||||
|
||||
/**
|
||||
* Add an additional record to the <code>INSERT</code> statement
|
||||
*
|
||||
|
||||
@ -340,6 +340,30 @@ public interface InsertSetStep<R extends Record> {
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Record record);
|
||||
|
||||
/**
|
||||
* Set values in the <code>INSERT</code> statement.
|
||||
* <p>
|
||||
* This is convenience for multiple calls to {@link #set(Record)} and
|
||||
* {@link InsertSetMoreStep#newRecord()}.
|
||||
*
|
||||
* @see #set(Record)
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Record... records);
|
||||
|
||||
/**
|
||||
* Set values in the <code>INSERT</code> statement.
|
||||
* <p>
|
||||
* This is convenience for multiple calls to {@link #set(Record)} and
|
||||
* {@link InsertSetMoreStep#newRecord()}.
|
||||
*
|
||||
* @see #set(Record)
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
InsertSetMoreStep<R> set(Collection<? extends Record> records);
|
||||
|
||||
/**
|
||||
* Add values to the insert statement with implicit field names.
|
||||
*/
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep1<R extends Record, T1> extends InsertOnDuplica
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep1<R extends Record, T1> extends InsertOnDuplica
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep10<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep10<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep11<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep11<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep12<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep12<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep13<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep13<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep14<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep14<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep15<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep15<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep16<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep16<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep17<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep17<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep18<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep18<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep19<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep19<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep2<R extends Record, T1, T2> extends InsertOnDup
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep2<R extends Record, T1, T2> extends InsertOnDup
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep20<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep20<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep21<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep21<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep22<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep22<R extends Record, T1, T2, T3, T4, T5, T6, T7
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep3<R extends Record, T1, T2, T3> extends InsertO
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep3<R extends Record, T1, T2, T3> extends InsertO
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep4<R extends Record, T1, T2, T3, T4> extends Ins
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep4<R extends Record, T1, T2, T3, T4> extends Ins
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep5<R extends Record, T1, T2, T3, T4, T5> extends
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep5<R extends Record, T1, T2, T3, T4, T5> extends
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep6<R extends Record, T1, T2, T3, T4, T5, T6> ext
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep6<R extends Record, T1, T2, T3, T4, T5, T6> ext
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep7<R extends Record, T1, T2, T3, T4, T5, T6, T7>
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep7<R extends Record, T1, T2, T3, T4, T5, T6, T7>
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep8<R extends Record, T1, T2, T3, T4, T5, T6, T7,
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep8<R extends Record, T1, T2, T3, T4, T5, T6, T7,
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -129,7 +129,9 @@ public interface InsertValuesStep9<R extends Record, T1, T2, T3, T4, T5, T6, T7,
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -145,7 +147,9 @@ public interface InsertValuesStep9<R extends Record, T1, T2, T3, T4, T5, T6, T7,
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -128,7 +128,9 @@ public interface InsertValuesStepN<R extends Record> extends InsertOnDuplicateSt
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
@ -143,7 +145,9 @@ public interface InsertValuesStepN<R extends Record> extends InsertOnDuplicateSt
|
||||
* <strong>Note</strong>: Irrespective of individual {@link Record#changed()}
|
||||
* flag values, all record values are copied to the <code>VALUES</code> clause
|
||||
* using {@link Record#intoArray()}, to match insert columns by position, not
|
||||
* by name.
|
||||
* by name. If you prefer omitting unchanged values and adding values by field
|
||||
* name rather than by index, use {@link InsertSetStep#set(Record...)} instead.
|
||||
* That syntax is available only if you omit the explicit insert columns list.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
|
||||
@ -1242,6 +1242,25 @@ final class InsertImpl<R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10
|
||||
return set(Tools.mapOfChangedValues(record));
|
||||
}
|
||||
|
||||
@Override
|
||||
public final InsertImpl set(Record... records) {
|
||||
return set(Arrays.asList(records));
|
||||
}
|
||||
|
||||
@Override
|
||||
public final InsertImpl set(Collection<? extends Record> records) {
|
||||
for (Record record : records)
|
||||
|
||||
// [#6373] [#7322] [#15455]
|
||||
// A trailing newRecord() call is a no-op, but if users call set() twice with
|
||||
// collections of records, then the expectation is for the two calls to be
|
||||
// complete, i.e. no additional newRecord() calls should be needed in between
|
||||
// the two
|
||||
set(record).newRecord();
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final InsertImpl setAllToExcluded() {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user