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.
-
Field Summary
Fields inherited from class org.litebridge.orm.api.select.impl.AbstractJoinClause
delegate -
Constructor Summary
ConstructorsConstructorDescriptionDtoJoinClause(DtoSelector<DTO> delegate, OrmTable targetTable, Function<QueryNode, DtoJoinConditionClauseTerminal<DTO>> terminalCreator) Creates a new instance ofDtoJoinClause. -
Method Summary
Modifier and TypeMethodDescriptionAdds a join ON condition to the current join clause based on the specified field.on(QueryConditionBuilder<DTO> builder) Adds a join ON condition based on a query condition builder.on(ExpressionSpec expression) Adds a join ON condition based on a query expression.
-
Constructor Details
-
DtoJoinClause
public DtoJoinClause(DtoSelector<DTO> delegate, OrmTable targetTable, Function<QueryNode, DtoJoinConditionClauseTerminal<DTO>> terminalCreator) Creates a new instance ofDtoJoinClause.- Parameters:
delegate- the selector delegate for further query buildingtargetTable- the ORM table to join withterminalCreator- 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
-