Deprecated
as a consequence of MergeMatchedStep being deprecated. See corresponding docs for further information.
Merge's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.mergeInto(table)
.using(select)
.on(condition)
.whenMatchedThenUpdate()
.set(field1, value1)
.set(field2, value2)
.whenNotMatchedThenInsert(field1, field2)
.values(value1, 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 MergeOnConditionStep | and(Condition condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
Condition and MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | and(Field<Boolean> condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
Field and MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | and(SQL sql)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | and(String sql)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | and(String sql, Object... bindings)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | and(String sql, QueryPart... parts)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | andExists(Select<?> select)
Deprecated
as a consequence of
Combine the currently assembled conditions with an EXISTS clause using
the MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | andNot(Condition condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with a negated other one using
the Condition and MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | andNot(Field<Boolean> condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with a negated other one using
the Field and MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | andNotExists(Select<?> select)
Deprecated
as a consequence of
Combine the currently assembled conditions with a NOT EXISTS clause using
the MergeOnConditionStep being deprecated.
Operator#AND operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(Condition condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
Condition and MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(Field<Boolean> condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
Field and MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(SQL sql)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(String sql)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(String sql, Object... bindings)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | or(String sql, QueryPart... parts)
Deprecated
as a consequence of
Combine the currently assembled conditions with another one using the
MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | orExists(Select<?> select)
Deprecated
as a consequence of
Combine the currently assembled conditions with an EXISTS clause using
the MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | orNot(Condition condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with a negated other one using
the Condition and MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | orNot(Field<Boolean> condition)
Deprecated
as a consequence of
Combine the currently assembled conditions with a negated other one using
the Field and MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| public @NotNull MergeOnConditionStep | orNotExists(Select<?> select)
Deprecated
as a consequence of
Combine the currently assembled conditions with a NOT EXISTS clause using
the MergeOnConditionStep being deprecated.
Operator#OR operator and proceed to the next step.
|
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
| |
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
| |
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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! | |
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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! | |
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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!
| |
| and | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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!
| |
| andExists | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with an EXISTS clause using
the | |
| andNot | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a negated other one using
the | |
| andNot | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a negated other one using
the | |
| andNotExists | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a NOT EXISTS clause using
the | |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
| |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
| |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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! | |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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! | |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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!
| |
| or | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with another one using the
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!
| |
| orExists | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with an EXISTS clause using
the | |
| orNot | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a negated other one using
the | |
| orNot | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a negated other one using
the | |
| orNotExists | back to summary |
|---|---|
| public @NotNull MergeOnConditionStep Deprecated as a consequence of Combine the currently assembled conditions with a NOT EXISTS clause using
the | |