Module litebridge.orm
Package org.litebridge.orm.api.merge
Class MergeUsingStep<DTO,MUS extends MergeUpdateStep,MIS extends MergeInsertStep>
java.lang.Object
org.litebridge.orm.api.merge.MergeUsingStep<DTO,MUS,MIS>
- Type Parameters:
DTO- the target DTO type orRowMUS- the merge update step typeMIS- the merge insert step type
- Direct Known Subclasses:
DtoMergeUsingStep,SqlMergeUsingStep
public abstract sealed class MergeUsingStep<DTO,MUS extends MergeUpdateStep,MIS extends MergeInsertStep>
extends Object
permits DtoMergeUsingStep<DTO>, SqlMergeUsingStep
Abstract base step for specifying the source in a
MERGE statement.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LitebridgeContextThe Litebridge context.protected final MergeNodeThe current merge AST node. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMergeUsingStep(Class<DTO> dtoClass, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newMergeUsingSteptargeting a DTO class.protectedMergeUsingStep(String destinationTable, LitebridgeContext litebridgeContext) Creates a newMergeUsingSteptargeting a table. -
Method Summary
-
Field Details
-
mergeNode
The current merge AST node. -
litebridgeContext
The Litebridge context.
-
-
Constructor Details
-
MergeUsingStep
Creates a newMergeUsingSteptargeting a table.- Parameters:
destinationTable- the destination table namelitebridgeContext- the Litebridge context
-
MergeUsingStep
protected MergeUsingStep(Class<DTO> dtoClass, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newMergeUsingSteptargeting a DTO class.- Parameters:
dtoClass- the destination DTO classcontextDtoClass- the parent context DTO classlitebridgeContext- the Litebridge context
-