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(Class<?> dtoClass, OrmTable joinTable, DtoSelector<DTO> delegate)
      Creates a new instance of DtoJoinClause.
      Parameters:
      dtoClass - the class of the DTO being joined
      joinTable - the metadata of the table being joined
      delegate - the selector delegate for further query building
  • 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