java.lang.Object
org.litebridge.orm.api.merge.MergeUsingStep<DTO,DtoMergeUpdateStep<DTO>,DtoMergeInsertStep>
org.litebridge.orm.api.merge.DtoMergeUsingStep<DTO>
- Type Parameters:
DTO- the mapped DTO/entity type
public final class DtoMergeUsingStep<DTO>
extends MergeUsingStep<DTO,DtoMergeUpdateStep<DTO>,DtoMergeInsertStep>
Step to specify the DTO/entity class 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
ConstructorsConstructorDescriptionDtoMergeUsingStep(Class<DTO> dtoClass, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newDtoMergeUsingStepinstance. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the DTO/entity class to use for theUSINGclause.using(Function<SelectApi, SelectTerminal<?>> subselect) Specifies a subquery to use as the merge source.using(FromTargetSpec fromTargetSpec)
-
Constructor Details
-
DtoMergeUsingStep
public DtoMergeUsingStep(Class<DTO> dtoClass, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newDtoMergeUsingStepinstance.- Parameters:
dtoClass- the DTO/entity class to use for theUSINGclausecontextDtoClass- the parent context DTO/entity class to use for theUSINGclauselitebridgeContext- the Litebridge context
-
-
Method Details
-
using
Specifies the DTO/entity class to use for theUSINGclause.- Parameters:
dtoClass- the DTO/entity class to use for theUSINGclause- Returns:
- the next step in the merge operation
-
using
Specifies a subquery to use as the merge source.- Parameters:
subselect- function building the subquery- Returns:
- the merge ON condition clause terminal
-
using
-