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 WhereClausewhereWHEREclause-
Fields inherited from class com.exasol.sql.AbstractFragment
root
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMergeMethodDefinition(Fragment root)Create the abstract base for a merge method definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhereClausegetWhere()Get theWHEREclause of the merge method definition.booleanhasWhere()Check if theWHEREclause exists.Mergewhere(BooleanExpression expression)Add aWHEREclauseMERGEdefinition.-
Methods inherited from class com.exasol.sql.AbstractFragment
getRoot
-
-
-
-
Field Detail
-
where
protected WhereClause where
WHEREclause
-
-
Constructor Detail
-
MergeMethodDefinition
protected MergeMethodDefinition(Fragment root)
Create the abstract base for a merge method definition.- Parameters:
root- rootMERGEstatement
-
-
Method Detail
-
where
public Merge where(BooleanExpression expression)
Add aWHEREclauseMERGEdefinition.- Parameters:
expression- filter expression- Returns:
- parent
MERGEstatement
-
getWhere
public WhereClause getWhere()
Get theWHEREclause of the merge method definition.- Returns:
WHEREclause
-
hasWhere
public boolean hasWhere()
Check if theWHEREclause exists.- Returns:
trueif theWHEREclause exists
-
-