Deprecated
as a consequence of InsertOnDuplicateStep being deprecated. See corresponding docs for further information.
Insert's alternative DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.insertInto(table)
.set(field1, value1)
.set(field2, value2)
.newRecord()
.set(field1, value3)
.set(field2, value4)
.onDuplicateKeyUpdate()
.set(field1, value1)
.set(field2, value2)
.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 @NotNull InsertSetStep | |
| public <T> @NotNull InsertSetMoreStep | set(Field<T> field, T value)
Deprecated
as a consequence of
Set a value for a field in the Field and InsertSetMoreStep being deprecated.
INSERT statement.
|
| public <T> @NotNull InsertSetMoreStep | set(Field<T> field, Field<T> value)
Deprecated
as a consequence of
Set a value for a field in the Field and InsertSetMoreStep being deprecated.
INSERT statement.
|
| public <T> @NotNull InsertSetMoreStep | |
| public @NotNull InsertSetMoreStep | set(Map<?, ?> map)
Deprecated
as a consequence of
Set values in the InsertSetMoreStep being deprecated.
INSERT statement.
|
| public @NotNull InsertSetMoreStep | set(Record record)
Deprecated
as a consequence of
Set values in the InsertSetMoreStep being deprecated.
INSERT statement.
|
| public <T> @NotNull InsertSetMoreStep | setNull(Field<T> field)
Deprecated
as a consequence of
Set a Field and InsertSetMoreStep being deprecated.
null value for a field in the INSERT
statement.
|
| newRecord | back to summary |
|---|---|
| public @NotNull InsertSetStep Add an additional record to the
| |
| set | back to summary |
|---|---|
| public <T> @NotNull InsertSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public <T> @NotNull InsertSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public <T> @NotNull InsertSetMoreStep Deprecated as a consequence of Set a value for a field in the
| |
| set | back to summary |
|---|---|
| public @NotNull InsertSetMoreStep Deprecated as a consequence of Set values in the
Keys can either be of type
Values can either be of type
| |
| set | back to summary |
|---|---|
| public @NotNull InsertSetMoreStep Deprecated as a consequence of Set values in the
This is the same as calling
| |
| setNull | back to summary |
|---|---|
| public <T> @NotNull InsertSetMoreStep Deprecated as a consequence of Set a
This method is convenience for calling
| |