Class DtoMergeUsingStep<DTO>

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.
  • Constructor Details

    • DtoMergeUsingStep

      public DtoMergeUsingStep(Class<DTO> dtoClass, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext)
      Creates a new DtoMergeUsingStep instance.
      Parameters:
      dtoClass - the DTO/entity class to use for the USING clause
      contextDtoClass - the parent context DTO/entity class to use for the USING clause
      litebridgeContext - the Litebridge context
  • Method Details

    • using

      public DtoMergeOnStep<DTO> using(Class<?> dtoClass)
      Specifies the DTO/entity class to use for the USING clause.
      Parameters:
      dtoClass - the DTO/entity class to use for the USING clause
      Returns:
      the next step in the merge operation
    • using

      public DtoMergeOnStep<DTO> using(Function<SelectApi,SelectTerminal<?>> subselect)
      Specifies a subquery to use as the merge source.
      Parameters:
      subselect - function building the subquery
      Returns:
      the merge ON condition clause terminal
    • using

      public DtoMergeOnStep<DTO> using(FromTargetSpec fromTargetSpec)