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, joinSpec -
Constructor Summary
ConstructorsConstructorDescriptionDtoJoinClause(Class<?> dtoClass, OrmTable joinTable, DtoSelector<DTO> delegate) 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(ExpressionSpec expression) Adds a join ON condition based on a query expression.
-
Constructor Details
-
DtoJoinClause
Creates a new instance ofDtoJoinClause.- Parameters:
dtoClass- the class of the DTO being joinedjoinTable- the metadata of the table being joineddelegate- 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
-