Class DtoJoinClause<DTO>

java.lang.Object
org.litebridge.orm.api.select.impl.AbstractJoinClause<DTO,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>,DtoSelectSpec,DtoJoinSpec>
org.litebridge.orm.api.dto.DtoJoinClause<DTO>
Type Parameters:
DTO - the type of the DTO being queried
All Implemented Interfaces:
JoinClause<DTO,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>>

public final class DtoJoinClause<DTO> extends org.litebridge.orm.api.select.impl.AbstractJoinClause<DTO,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>,DtoSelectSpec,DtoJoinSpec>
Represents a JOIN clause in a DTO-based query.
  • Constructor Details

    • DtoJoinClause

      public DtoJoinClause(DtoSelector<DTO> delegate, OrmTable targetTable, Function<QueryNode,DtoJoinConditionClauseTerminal<DTO>> terminalCreator)
      Creates a new instance of DtoJoinClause.
      Parameters:
      delegate - the selector delegate for further query building
      targetTable - the ORM table to join with
      terminalCreator - the function to create the terminal clause
  • Method Details

    • on

      Adds a join ON condition to the current join clause based on the specified field. The join condition constrains the relationship between the tables being joined.
      Parameters:
      field - the name of the field to be used in the join condition
      Returns:
      an instance of the join condition clause to allow further configuration
    • on

      Adds a join ON condition based on a query expression.
      Parameters:
      expression - the expression to use for the join condition
      Returns:
      an instance of the join condition clause to allow further configuration
    • on

      Adds a join ON condition based on a query condition builder.
      Parameters:
      builder - the builder for the join condition
      Returns:
      an instance of the join condition clause to allow further configuration