Module org.jooq
Package org.jooq

Interface Update<R extends Record>

All Superinterfaces:
Attachable, AttachableQueryPart, DMLQuery<R>, Flow.Publisher<Integer>, Publisher<Integer>, org.reactivestreams.Publisher<Integer>, Query, QueryPart, RowCountQuery, Serializable, Statement
All Known Subinterfaces:
UpdateConditionStep<R>, UpdateFinalStep<R>, UpdateFromStep<R>, UpdateLimitStep<R>, UpdateOrderByStep<R>, UpdateQuery<R>, UpdateReturningStep<R>, UpdateSetMoreStep<R>, UpdateWhereStep<R>

public interface Update<R extends Record> extends DMLQuery<R>
An UPDATE statement.

Example:


 // Assuming import static org.jooq.impl.DSL.*;

 using(configuration)
    .update(CUSTOMER)
    .set(CUSTOMER.STATUS, "Gold")
    .where(CUSTOMER.ID.eq(1))
    .execute();
 

Instances can be created using DSL.update(Table), or DSLContext.updateQuery(Table) and overloads.

Author:
Lukas Eder