- Type Parameters:
R
- The record type of the table being updated
- All Superinterfaces:
Attachable
,AttachableQueryPart
,ConditionProvider
,DMLQuery<R>
,Flow.Publisher<Integer>
,Publisher<Integer>
,org.reactivestreams.Publisher<Integer>
,Query
,QueryPart
,RowCountQuery
,Serializable
,Statement
,StoreQuery<R>
,Update<R>
UPDATE
statement (model API).
This type is the model API representation of a Update
statement,
which can be mutated after creation. The advantage of this API compared to
the DSL API is a more simple approach to writing dynamic SQL.
Instances can be created using DSLContext.updateQuery(Table)
and
overloads.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConditions
(Collection<? extends Condition> conditions) Adds new conditions to the query, connecting them to existing conditions withOperator.AND
.void
addConditions
(Condition condition) Adds a new condition to the query, connecting them to existing conditions withOperator.AND
.void
addConditions
(Condition... conditions) Adds new conditions to the query, connecting them to existing conditions withOperator.AND
.void
addConditions
(Operator operator, Collection<? extends Condition> conditions) Adds new conditions to the query, connecting them to existing conditions with the provided operator.void
addConditions
(Operator operator, Condition condition) Adds a new condition to the query, connecting them to existing conditions with the provided operator.void
addConditions
(Operator operator, Condition... conditions) Adds new conditions to the query, connecting them to existing conditions with the provided operator.void
addFrom
(Collection<? extends TableLike<?>> from) Add tables to the table product.void
Add tables to the table product.void
Add tables to the table product.void
Limit the results of this select.void
Limit the results of this select.void
addOrderBy
(Collection<? extends OrderField<?>> fields) Adds ordering fields.void
addOrderBy
(OrderField<?>... fields) Adds ordering fields.<T1> void
Specify a multi-column set clause for theUPDATE
statement.<T1> void
Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10>
voidaddValues
(Row10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> row, Select<? extends Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
voidaddValues
(Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> row, Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
voidaddValues
(Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> row, Select<? extends Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
voidaddValues
(Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> row, Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
voidaddValues
(Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> row, Select<? extends Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
voidaddValues
(Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> row, Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
voidaddValues
(Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> row, Select<? extends Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
voidaddValues
(Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> row, Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
voidaddValues
(Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> row, Select<? extends Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
voidaddValues
(Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> row, Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
voidaddValues
(Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> row, Select<? extends Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
voidaddValues
(Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> row, Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
voidaddValues
(Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> row, Select<? extends Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>
voidaddValues
(Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> row, Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>
voidaddValues
(Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> row, Select<? extends Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>
voidaddValues
(Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> row, Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>
voidaddValues
(Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> row, Select<? extends Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>
voidaddValues
(Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> row, Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>
voidaddValues
(Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> row, Select<? extends Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2> void Specify a multi-column set clause for theUPDATE
statement.<T1,
T2> void Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>
voidaddValues
(Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> row, Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>
voidaddValues
(Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> row, Select<? extends Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>
voidaddValues
(Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> row, Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>
voidaddValues
(Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> row, Select<? extends Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>
voidaddValues
(Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> row, Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> value) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>
voidaddValues
(Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> row, Select<? extends Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3> void Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3> void Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8>
voidaddValues
(Row8<T1, T2, T3, T4, T5, T6, T7, T8> row, Select<? extends Record8<T1, T2, T3, T4, T5, T6, T7, T8>> select) Specify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9>
voidSpecify a multi-column set clause for theUPDATE
statement.<T1,
T2, T3, T4, T5, T6, T7, T8, T9>
voidaddValues
(Row9<T1, T2, T3, T4, T5, T6, T7, T8, T9> row, Select<? extends Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> select) Specify a multi-column set clause for theUPDATE
statement.void
Specify a multi-column set clause for theUPDATE
statement.void
Specify a multi-column set clause for theUPDATE
statement.The record holding returned values as specified by any of theStoreQuery.setReturning()
methods.The records holding returned values as specified by any of theStoreQuery.setReturning()
methods.void
Configure theINSERT
orUPDATE
statement to return all fields inR
.void
setReturning
(Collection<? extends SelectFieldOrAsterisk> fields) Configure theINSERT
orUPDATE
statement to return a list of fields inR
.void
setReturning
(Identity<R, ?> identity) Configure theINSERT
orUPDATE
statement to return the generated identity value.void
setReturning
(SelectFieldOrAsterisk... fields) Configure theINSERT
orUPDATE
statement to return a list of fields inR
.Methods inherited from interface org.jooq.Attachable
attach, configuration, detach
Methods inherited from interface org.jooq.AttachableQueryPart
getBindValues, getParam, getParams, getSQL, getSQL
Methods inherited from interface org.reactivestreams.Publisher
subscribe
Methods inherited from interface org.jooq.Query
bind, bind, cancel, execute, executeAsync, executeAsync, isExecutable, keepStatement, poolable, queryTimeout
-
Method Details
-
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6> (Row6<T1, T2, T3, T4, T5, T6> row, Row6<T1, T2, T3, T4, T5, T6> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7> (Row7<T1, T2, T3, T4, T5, T6, T7> row, Row7<T1, T2, T3, T4, T5, T6, T7> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8> (Row8<T1, T2, T3, T4, T5, T6, T7, T8> row, Row8<T1, T2, T3, T4, T5, T6, T7, T8> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9> (Row9<T1, T2, T3, T4, T5, T6, T7, T8, T9> row, Row9<T1, T2, T3, T4, T5, T6, T7, T8, T9> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10> (Row10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> row, Row10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11> (Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> row, Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12> (Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> row, Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> (Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> row, Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> (Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> row, Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> (Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> row, Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> (Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> row, Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> (Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> row, Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> (Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> row, Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> (Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> row, Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> (Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> row, Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> (Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> row, Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> (Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> row, Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> value) Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3> (Row3<T1, T2, T3> row, Select<? extends Record3<T1, T2, T3>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4> (Row4<T1, T2, T3, T4> row, Select<? extends Record4<T1, T2, T3, T4>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5> (Row5<T1, T2, T3, T4, T5> row, Select<? extends Record5<T1, T2, T3, T4, T5>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6> (Row6<T1, T2, T3, T4, T5, T6> row, Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7> (Row7<T1, T2, T3, T4, T5, T6, T7> row, Select<? extends Record7<T1, T2, T3, T4, T5, T6, T7>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8> (Row8<T1, T2, T3, T4, T5, T6, T7, T8> row, Select<? extends Record8<T1, T2, T3, T4, T5, T6, T7, T8>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9> (Row9<T1, T2, T3, T4, T5, T6, T7, T8, T9> row, Select<? extends Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10> (Row10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> row, Select<? extends Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11> (Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> row, Select<? extends Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12> (Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> row, Select<? extends Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> (Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> row, Select<? extends Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> (Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> row, Select<? extends Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> (Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> row, Select<? extends Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> (Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> row, Select<? extends Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> (Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> row, Select<? extends Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> (Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> row, Select<? extends Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> (Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> row, Select<? extends Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> (Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> row, Select<? extends Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> (Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> row, Select<? extends Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> select) Specify a multi-column set clause for theUPDATE
statement. -
addValues
@Support <T1,T2, void addValuesT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> (Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> row, Select<? extends Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> select) Specify a multi-column set clause for theUPDATE
statement. -
addFrom
@Support({ASE,AURORA_POSTGRES,BIGQUERY,COCKROACHDB,CUBRID,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLITE_3_38,SQLSERVER,SYBASE,TERADATA,VERTICA}) void addFrom(TableLike<?> from) Add tables to the table product.- Parameters:
from
- The added tables
-
addFrom
@Support({ASE,AURORA_POSTGRES,BIGQUERY,COCKROACHDB,CUBRID,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLITE_3_38,SQLSERVER,SYBASE,TERADATA,VERTICA}) void addFrom(TableLike<?>... from) Add tables to the table product.- Parameters:
from
- The added tables
-
addFrom
@Support({ASE,AURORA_POSTGRES,BIGQUERY,COCKROACHDB,CUBRID,DB2,DERBY,EXASOL,FIREBIRD_3_0,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLITE_3_38,SQLSERVER,SYBASE,TERADATA,VERTICA}) void addFrom(Collection<? extends TableLike<?>> from) Add tables to the table product.- Parameters:
from
- The added tables
-
addConditions
Description copied from interface:ConditionProvider
Adds a new condition to the query, connecting them to existing conditions withOperator.AND
.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
condition
- The condition
-
addConditions
Description copied from interface:ConditionProvider
Adds new conditions to the query, connecting them to existing conditions withOperator.AND
.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
conditions
- The condition
-
addConditions
Description copied from interface:ConditionProvider
Adds new conditions to the query, connecting them to existing conditions withOperator.AND
.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
conditions
- The condition
-
addConditions
Description copied from interface:ConditionProvider
Adds a new condition to the query, connecting them to existing conditions with the provided operator.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
condition
- The condition
-
addConditions
Description copied from interface:ConditionProvider
Adds new conditions to the query, connecting them to existing conditions with the provided operator.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
conditions
- The condition
-
addConditions
Description copied from interface:ConditionProvider
Adds new conditions to the query, connecting them to existing conditions with the provided operator.- Specified by:
addConditions
in interfaceConditionProvider
- Parameters:
conditions
- The condition
-
addOrderBy
Adds ordering fields.- Parameters:
fields
- The ordering fields
-
addOrderBy
Adds ordering fields.- Parameters:
fields
- The ordering fields
-
addLimit
Limit the results of this select.- Parameters:
numberOfRows
- The number of rows to return
-
addLimit
Limit the results of this select.- Parameters:
numberOfRows
- The number of rows to return
-
setReturning
@Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) void setReturning()Configure theINSERT
orUPDATE
statement to return all fields inR
.This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
setReturning
in interfaceStoreQuery<R extends Record>
- See Also:
-
setReturning
@Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) void setReturning(Identity<R, ?> identity) Configure theINSERT
orUPDATE
statement to return the generated identity value.This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
setReturning
in interfaceStoreQuery<R extends Record>
- Parameters:
identity
- The table's identity- See Also:
-
setReturning
@Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) void setReturning(SelectFieldOrAsterisk... fields) Configure theINSERT
orUPDATE
statement to return a list of fields inR
.This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
setReturning
in interfaceStoreQuery<R extends Record>
- Parameters:
fields
- Fields to be returned- See Also:
-
setReturning
@Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) void setReturning(Collection<? extends SelectFieldOrAsterisk> fields) Configure theINSERT
orUPDATE
statement to return a list of fields inR
.This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
setReturning
in interfaceStoreQuery<R extends Record>
- Parameters:
fields
- Fields to be returned- See Also:
-
getReturnedRecord
@Nullable @Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) R getReturnedRecord()The record holding returned values as specified by any of theStoreQuery.setReturning()
methods.If the insert statement returns several records, this is the same as calling
getReturnedRecords().get(0)
This implemented differently for every dialect:
- Firebird and Postgres have native support for
INSERT … RETURNING
andUPDATE … RETURNING
clauses - HSQLDB, Oracle, and DB2 JDBC drivers allow for retrieving any table column as "generated key" in one statement
- Derby, H2, Ingres, MySQL, SQL Server only allow for retrieving IDENTITY column values as "generated key". If other fields are requested, a second statement is issued. Client code must assure transactional integrity between the two statements.
- Sybase and SQLite allow for retrieving IDENTITY values as
@@identity
orlast_inserted_rowid()
values. Those values are fetched in a separateSELECT
statement. If other fields are requested, a second statement is issued. Client code must assure transactional integrity between the two statements.
This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
getReturnedRecord
in interfaceStoreQuery<R extends Record>
- Returns:
- The returned value as specified by any of the
StoreQuery.setReturning()
methods. This may returnnull
in case jOOQ could not retrieve any generated keys from the JDBC driver. - See Also:
- Firebird and Postgres have native support for
-
getReturnedRecords
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,H2_2_0_202,ORACLE,POSTGRES,SQLSERVER,YUGABYTEDB}) @NotNull Result<R> getReturnedRecords()The records holding returned values as specified by any of theStoreQuery.setReturning()
methods.This implemented differently for every dialect:
- Firebird and Postgres have native support for
INSERT … RETURNING
andUPDATE … RETURNING
clauses - HSQLDB, Oracle, and DB2 JDBC drivers allow for retrieving any table column as "generated key" in one statement
- Derby, H2, Ingres, MySQL, SQL Server only allow for retrieving IDENTITY column values as "generated key". If other fields are requested, a second statement is issued. Client code must assure transactional integrity between the two statements.
- Sybase and SQLite allow for retrieving IDENTITY values as
@@identity
orlast_inserted_rowid()
values. Those values are fetched in a separateSELECT
statement. If other fields are requested, a second statement is issued. Client code must assure transactional integrity between the two statements.
[#5070] Due to an early API design flaw, this method historically returns the type
R
, not a more generic typeRecord
. This means that only actual columns inR
can be returned. For a more generic set of column expressions, useStoreQuery.getResult()
instead.This feature works with
UPDATE
statements for a subset of SQL dialects- Specified by:
getReturnedRecords
in interfaceStoreQuery<R extends Record>
- Returns:
- The returned values as specified by any of the
StoreQuery.setReturning()
methods. Note:- Not all databases / JDBC drivers support returning several values on multi-row inserts!
- This may return an empty
Result
in case jOOQ could not retrieve any generated keys from the JDBC driver.
- Firebird and Postgres have native support for
-