public interface UpdateWhereStep<R extends Record> extends UpdateOrderByStep<R>
Update
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.update(table)
.set(field1, value1)
.set(field2, value2)
.where(field1.greaterThan(100))
.execute();
XYZ*Step
types directly from client code
It is usually not recommended to reference any XYZ*Step
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: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.
Drawbacks of referencing the XYZ*Step
types directly:
Modifier and Type | Method and Description |
---|---|
@NotNull UpdateConditionStep<R> |
where(Boolean condition)
Deprecated.
- 3.8.0 - [#4763] - Use
where(Condition) (typically
with DSL.trueCondition() ,
DSL.falseCondition() , or DSL.noCondition() as
the parameter) or where(Field) instead. Due to
ambiguity between calling this method using
Field.equals(Object) argument, vs. calling the other
method via a Field.equal(Object) argument, this
method will be removed in the future. |
@NotNull UpdateConditionStep<R> |
where(Collection<? extends Condition> conditions)
Add conditions to the query, connecting them with each other with
Operator.AND . |
@NotNull UpdateConditionStep<R> |
where(Condition... conditions)
Add conditions to the query, connecting them with each other with
Operator.AND . |
@NotNull UpdateConditionStep<R> |
where(Condition condition)
Add conditions to the query, connecting them with each other with
Operator.AND . |
@NotNull UpdateConditionStep<R> |
where(Field<Boolean> condition)
Add conditions to the query
|
@NotNull UpdateConditionStep<R> |
where(SQL sql)
Add conditions to the query
NOTE: When inserting plain SQL into jOOQ objects, you must
guarantee syntax integrity.
|
@NotNull UpdateConditionStep<R> |
where(String sql)
Add conditions to the query
NOTE: When inserting plain SQL into jOOQ objects, you must
guarantee syntax integrity.
|
@NotNull UpdateConditionStep<R> |
where(String sql,
Object... bindings)
Add conditions to the query
NOTE: When inserting plain SQL into jOOQ objects, you must
guarantee syntax integrity.
|
@NotNull UpdateConditionStep<R> |
where(String sql,
QueryPart... parts)
Add conditions to the query
NOTE: When inserting plain SQL into jOOQ objects, you must
guarantee syntax integrity.
|
@NotNull UpdateConditionStep<R> |
whereExists(Select<?> select)
Add an EXISTS clause to the query
|
@NotNull UpdateConditionStep<R> |
whereNotExists(Select<?> select)
Add a NOT EXISTS clause to the query
|
orderBy, orderBy, orderBy
limit, limit
returning, returning, returning, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult
bind, bind, cancel, close, execute, executeAsync, executeAsync, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, poolable, queryTimeout
attach, configuration, detach
@NotNull @Support @NotNull UpdateConditionStep<R> where(Condition condition)
Operator.AND
.@NotNull @Support @NotNull UpdateConditionStep<R> where(Condition... conditions)
Operator.AND
.@NotNull @Support @NotNull UpdateConditionStep<R> where(Collection<? extends Condition> conditions)
Operator.AND
.@NotNull @Support @NotNull UpdateConditionStep<R> where(Field<Boolean> condition)
@Deprecated @NotNull @Support @NotNull UpdateConditionStep<R> where(Boolean condition)
where(Condition)
(typically
with DSL.trueCondition()
,
DSL.falseCondition()
, or DSL.noCondition()
as
the parameter) or where(Field)
instead. Due to
ambiguity between calling this method using
Field.equals(Object)
argument, vs. calling the other
method via a Field.equal(Object)
argument, this
method will be removed in the future.@NotNull @Support @PlainSQL @NotNull UpdateConditionStep<R> where(SQL sql)
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
DSL.condition(SQL)
,
SQL
@NotNull @Support @PlainSQL @NotNull UpdateConditionStep<R> where(String sql)
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
DSL.condition(String)
,
SQL
@NotNull @Support @PlainSQL @NotNull UpdateConditionStep<R> where(String sql, Object... bindings)
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
@NotNull @Support @PlainSQL @NotNull UpdateConditionStep<R> where(String sql, QueryPart... parts)
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
@NotNull @Support @NotNull UpdateConditionStep<R> whereExists(Select<?> select)
@NotNull @Support @NotNull UpdateConditionStep<R> whereNotExists(Select<?> select)
Copyright © 2020. All rights reserved.