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 |
|---|---|
| public <T> @NotNull UpdateSetMoreStep | set(Field<T> field, T value)
Deprecated
as a consequence of
Set a value for a field in the Field and UpdateSetMoreStep being deprecated.
UPDATE statement.
|
| public <T> @NotNull UpdateSetMoreStep | set(Field<T> field, Field<T> value)
Deprecated
as a consequence of
Set a value for a field in the Field and UpdateSetMoreStep being deprecated.
UPDATE statement.
|
| public <T> @NotNull UpdateSetMoreStep | |
| public @NotNull UpdateSetMoreStep | set(Map<?, ?> map)
Deprecated
as a consequence of
Set a value for a field in the UpdateSetMoreStep being deprecated.
UPDATE statement.
|
| public @NotNull UpdateSetMoreStep | set(Record record)
Deprecated
as a consequence of
Set a value for a field in the UpdateSetMoreStep being deprecated.
UPDATE statement.
|
| public <T> @NotNull UpdateSetMoreStep | setNull(Field<T> field)
Deprecated
as a consequence of
Set a Field and UpdateSetMoreStep being deprecated.
null value for a field in the UPDATE
statement.
|
| set | back to summary |
|---|---|
| public <T> @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public <T> @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public <T> @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a value for a field in the
Keys can either be of type
Values can either be of type
| |
| set | back to summary |
|---|---|
| public @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a value for a field in the
This is the same as calling
| |
| setNull | back to summary |
|---|---|
| public <T> @NotNull UpdateSetMoreStep Deprecated as a consequence of Set a
This method is convenience for calling
| |