Module litebridge.orm
Package org.litebridgedb.orm.api.dto
Class DtoJoinConditionClauseTerminal<DTO>
java.lang.Object
org.litebridgedb.orm.api.select.impl.DelegatingSelector<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.OrderByClauseTerminalImpl<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.AbstractWhereClauseTerminal<DTO,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
org.litebridgedb.orm.api.select.impl.AbstractJoinConditionClauseTerminal<DTO,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec,DtoJoinSpec>
org.litebridgedb.orm.api.dto.DtoJoinConditionClauseTerminal<DTO>
- All Implemented Interfaces:
DtoJoinClassTerminal<DTO>,org.litebridgedb.orm.api.select.ConditionClauseTerminal<DTO,,DtoJoinConditionClause<DTO>, DtoJoinConditionClauseTerminal<DTO>> org.litebridgedb.orm.api.select.JoinClauseTerminal<DTO,,DtoJoinClause<DTO>, DtoJoinConditionClause<DTO>, DtoJoinConditionClauseTerminal<DTO>, DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> org.litebridgedb.orm.api.select.JoinConditionClauseTerminal<DTO,,DtoJoinConditionClause<DTO>, DtoJoinConditionClauseTerminal<DTO>> org.litebridgedb.orm.api.select.LimitClauseTerminal<DTO>,org.litebridgedb.orm.api.select.OrderByClauseTerminal<DTO>,org.litebridgedb.orm.api.select.SelectTerminal<DTO>,org.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>>
public final class DtoJoinConditionClauseTerminal<DTO>
extends org.litebridgedb.orm.api.select.impl.AbstractJoinConditionClauseTerminal<DTO,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec,DtoJoinSpec>
implements org.litebridgedb.orm.api.select.JoinClauseTerminal<DTO,DtoJoinClause<DTO>,DtoJoinConditionClause<DTO>,DtoJoinConditionClauseTerminal<DTO>,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>, DtoJoinClassTerminal<DTO>
-
Field Summary
Fields inherited from class org.litebridgedb.orm.api.select.impl.AbstractJoinConditionClauseTerminal
joinSpecFields inherited from class org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl
selectSpecFields inherited from class org.litebridgedb.orm.api.select.impl.DelegatingSelector
delegate -
Constructor Summary
ConstructorsConstructorDescriptionDtoJoinConditionClauseTerminal(DtoJoinSpec joinSpec, DtoSelector<DTO> delegate, org.litebridgedb.orm.persistence.alias.AliasGenerator aliasGenerator) -
Method Summary
Modifier and TypeMethodDescriptionAdds an "AND" condition to the current condition clause using the specified column.Adds an ORDER BY clause to the query, specifying the columns to sort the results by.orderBy(FieldColumnSpec... fields) Adds an ORDER BY clause to the query, specifying the fields and columns to sort the results by.Starts a WHERE clause for the SQL query.Methods inherited from class org.litebridgedb.orm.api.select.impl.OrderByClauseTerminalImpl
limitMethods inherited from class org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl
offset, selectSpecMethods inherited from class org.litebridgedb.orm.api.select.impl.DelegatingSelector
first, firstOrNull, firstOrThrow, firstOrThrow, list, one, oneOrNull, oneOrThrow, oneOrThrow, stream, toSqlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridgedb.orm.api.select.LimitClauseTerminal
offsetMethods inherited from interface org.litebridgedb.orm.api.select.OrderByClauseTerminal
limitMethods inherited from interface org.litebridgedb.orm.api.select.SelectTerminal
first, firstOrNull, firstOrThrow, firstOrThrow, list, one, oneOrNull, oneOrThrow, oneOrThrow, stream, toSql
-
Constructor Details
-
DtoJoinConditionClauseTerminal
public DtoJoinConditionClauseTerminal(DtoJoinSpec joinSpec, DtoSelector<DTO> delegate, org.litebridgedb.orm.persistence.alias.AliasGenerator aliasGenerator)
-
-
Method Details
-
and
Description copied from interface:org.litebridgedb.orm.api.select.ConditionClauseTerminalAdds an "AND" condition to the current condition clause using the specified column. This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.- Specified by:
andin interfaceorg.litebridgedb.orm.api.select.ConditionClauseTerminal<DTO,DtoJoinConditionClause<DTO>, DtoJoinConditionClauseTerminal<DTO>> - Parameters:
field- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
where
Description copied from interface:org.litebridgedb.orm.api.select.JoinClauseTerminalStarts a WHERE clause for the SQL query.Adds a filtering condition to the SQL query based on the specified column. This method is part of a fluent API for building SQL queries and transitions to the next stage where additional filtering conditions can be specified.
- Specified by:
wherein interfaceorg.litebridgedb.orm.api.select.JoinClauseTerminal<DTO,DtoJoinClause<DTO>, DtoJoinConditionClause<DTO>, DtoJoinConditionClauseTerminal<DTO>, DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
field- the name of the column to apply the filtering condition on- Returns:
- an instance of
WCCrepresenting the next stage of the where condition clause
-
join
- Specified by:
joinin interfaceDtoJoinClassTerminal<DTO>
-
orderBy
Description copied from interface:org.litebridgedb.orm.api.select.WhereClauseTerminalAdds an ORDER BY clause to the query, specifying the columns to sort the results by.- Specified by:
orderByin interfaceorg.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
fields- the columns that determine the order of the results. Each column must be valid for the associated table or view in the query. The order in which the columns are specified determines the priority of ordering.- Returns:
- an instance of the type representing the ORDER BY clause, allowing further specification of ordering or transitioning to the next query stage.
-
orderBy
Description copied from interface:org.litebridgedb.orm.api.select.WhereClauseTerminalAdds an ORDER BY clause to the query, specifying the fields and columns to sort the results by.- Specified by:
orderByin interfaceorg.litebridgedb.orm.api.select.WhereClauseTerminal<DTO,DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
fields- the field and column specifications that determine the order of the results. Each specification includes a mapping of a field to a column. The order in which the specifications are provided defines the priority of ordering.- Returns:
- an instance of the type representing the ORDER BY clause, allowing further specification of ordering or transitioning to the next query stage.
-