java.lang.Object
org.litebridge.orm.api.merge.MergeUsingStep<Row,SqlMergeUpdateStep,MergeInsertStep>
org.litebridge.orm.api.merge.SqlMergeUsingStep
Step to specify the table to use for a
USING clause in a MERGE statement.-
Field Summary
Fields inherited from class org.litebridge.orm.api.merge.MergeUsingStep
litebridgeContext, mergeNode -
Constructor Summary
ConstructorsConstructorDescriptionSqlMergeUsingStep(String targetTable, LitebridgeContext litebridgeContext) Creates a newSqlMergeUsingStepinstance. -
Method Summary
Modifier and TypeMethodDescriptionSets theUSINGtable for the merge operation.using(Function<SelectApi, SelectTerminal<?>> subselect) Specifies a subquery to use as the merge source.using(FromTargetSpec fromTargetSpec)
-
Constructor Details
-
SqlMergeUsingStep
Creates a newSqlMergeUsingStepinstance.- Parameters:
targetTable- the merge target tablelitebridgeContext- the Litebridge context
-
-
Method Details
-
using
Sets theUSINGtable for the merge operation.- Parameters:
usingTableName- name of the table to use for theUSINGclause- Returns:
- step to specify the
ONcondition
-
using
Specifies a subquery to use as the merge source.- Parameters:
subselect- function building the subquery- Returns:
- the merge ON condition clause terminal
-
using
-