public class MergeInsertClause extends AbstractInsertValueTable<MergeInsertClause> implements MergeFragment
MERGE strategy of inserting rows from the source that do not match any row in the destination.| Modifier and Type | Field and Description |
|---|---|
protected WhereClause |
where |
insertFields, insertValueTableroot| Constructor and Description |
|---|
MergeInsertClause(Fragment root)
Create a new instance of a
MergeInsertClause. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MergeVisitor visitor)
Accept a visitor (e.g.
|
WhereClause |
getWhere()
Get the
WHERE clause of the insert definition. |
boolean |
hasWhere()
Check if the
WHERE clause exists. |
protected MergeInsertClause |
self() |
Merge |
where(BooleanExpression expression)
Add a
WHERE clause insertion definition. |
createInsertValueInstanceIfItDoesNotExist, field, hasFields, hasValues, valuePlaceholder, valuePlaceholders, values, values, values, valueTablegetRootprotected WhereClause where
public MergeInsertClause(Fragment root)
MergeInsertClause.root - root SQL statement this THEN INSERT clause belongs toprotected MergeInsertClause self()
self in class AbstractInsertValueTable<MergeInsertClause>public Merge where(BooleanExpression expression)
WHERE clause insertion definition.expression - filter expressionMERGE statementpublic WhereClause getWhere()
WHERE clause of the insert definition.WHERE clausepublic boolean hasWhere()
WHERE clause exists.true if the WHERE clause existspublic void accept(MergeVisitor visitor)
MergeFragmentaccept in interface MergeFragmentvisitor - visitor to acceptCopyright © 2018–2021. All rights reserved.