Package com.exasol.sql.dml.merge
Class MergeMethodDefinition
- java.lang.Object
-
- com.exasol.sql.AbstractFragment
-
- com.exasol.sql.dml.merge.MergeMethodDefinition
-
- All Implemented Interfaces:
Fragment
- Direct Known Subclasses:
MergeDeleteClause
,MergeUpdateClause
public abstract class MergeMethodDefinition extends AbstractFragment
Abstract base class for merge method definitions likeWHEN MATCHED THEN UPDATE
.
-
-
Field Summary
Fields Modifier and Type Field Description protected WhereClause
where
WHERE
clause-
Fields inherited from class com.exasol.sql.AbstractFragment
root
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MergeMethodDefinition(Fragment root)
Create the abstract base for a merge method definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhereClause
getWhere()
Get theWHERE
clause of the merge method definition.boolean
hasWhere()
Check if theWHERE
clause exists.Merge
where(BooleanExpression expression)
Add aWHERE
clauseMERGE
definition.-
Methods inherited from class com.exasol.sql.AbstractFragment
getRoot
-
-
-
-
Field Detail
-
where
protected WhereClause where
WHERE
clause
-
-
Constructor Detail
-
MergeMethodDefinition
protected MergeMethodDefinition(Fragment root)
Create the abstract base for a merge method definition.- Parameters:
root
- rootMERGE
statement
-
-
Method Detail
-
where
public Merge where(BooleanExpression expression)
Add aWHERE
clauseMERGE
definition.- Parameters:
expression
- filter expression- Returns:
- parent
MERGE
statement
-
getWhere
public WhereClause getWhere()
Get theWHERE
clause of the merge method definition.- Returns:
WHERE
clause
-
hasWhere
public boolean hasWhere()
Check if theWHERE
clause exists.- Returns:
true
if theWHERE
clause exists
-
-