java.lang.Object
org.litebridge.orm.api.merge.MergeUpdateStep
org.litebridge.orm.api.merge.SqlMergeUpdateStep
SQL-mode step for specifying the action to take in a
WHEN MATCHED clause.-
Field Summary
Fields inherited from class org.litebridge.orm.api.merge.MergeUpdateStep
litebridgeContext, node -
Constructor Summary
ConstructorsConstructorDescriptionSqlMergeUpdateStep(String table, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlMergeUpdateStepinstance. -
Method Summary
Modifier and TypeMethodDescriptiondelete()Specifies that the matched row should be deleted.delete(Function<SqlDeleteStart, DeleteTerminal> delete) Specifies the delete action to take when rows match.update(Function<SqlUpdateStart, UpdateQuery> update) Specifies the update action to take when rows match.
-
Constructor Details
-
SqlMergeUpdateStep
Creates a newSqlMergeUpdateStepinstance.- Parameters:
table- the target table namenode- the current query nodelitebridgeContext- the Litebridge context
-
-
Method Details
-
update
Specifies the update action to take when rows match.- Parameters:
update- function specifying the update operation- Returns:
- the
WHEN MATCHEDclause terminal
-
delete
Specifies the delete action to take when rows match.- Parameters:
delete- function specifying the delete operation- Returns:
- the
WHEN MATCHEDclause terminal
-
delete
Description copied from class:MergeUpdateStepSpecifies that the matched row should be deleted.- Specified by:
deletein classMergeUpdateStep- Returns:
- the
WHEN MATCHEDclause terminal
-