Module litebridge.orm
Package org.litebridgedb.orm.api.dto
Class DtoWhereConditionClauseTerminal<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,DtoGroupByClauseTerminal<DTO>,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
org.litebridgedb.orm.api.dto.DtoWhereConditionClauseTerminal<DTO>
- All Implemented Interfaces:
ConditionClauseTerminal<DTO,,DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>> LimitClauseTerminal<DTO>,OrderByClauseTerminal<DTO>,SelectTerminal<DTO>,WhereClauseTerminal<DTO,,DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> WhereConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>, DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>>
public final class DtoWhereConditionClauseTerminal<DTO>
extends org.litebridgedb.orm.api.select.impl.AbstractWhereClauseTerminal<DTO,DtoGroupByClauseTerminal<DTO>,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>,DtoSelectSpec>
implements WhereConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>,DtoWhereConditionClauseTerminal<DTO>,DtoGroupByClauseTerminal<DTO>,DtoHavingConditionClause<DTO>,DtoHavingConditionClauseTerminal<DTO>,DtoOrderByClause<DTO>,DtoOrderByClauseChain<DTO>>
-
Field Summary
Fields inherited from class org.litebridgedb.orm.api.select.impl.LimitClauseTerminalImpl
selectSpecFields inherited from class org.litebridgedb.orm.api.select.impl.DelegatingSelector
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an "AND" condition to the current condition clause using the specified column.and(ExpressionSpec expression) Adds an "AND" condition to the current condition clause using the specified column.Adds a GROUP BY clause to the query, specifying the column(s) to group the results by.groupBy(ExpressionSpec... fields) Adds a GROUP BY clause to the query, specifying the expressions to group the results by.Adds an ORDER BY clause to the query, specifying the expressions to sort the results by.orderBy(ExpressionSpec... fields) Adds an ORDER BY clause to the query, specifying the fields and expressions to sort the results by.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
-
DtoWhereConditionClauseTerminal
-
-
Method Details
-
and
Adds 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 interfaceConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>> - Parameters:
field- the name of the DTO field to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Adds 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 interfaceConditionClauseTerminal<DTO,DtoWhereConditionClause<DTO>, DtoWhereConditionClauseTerminal<DTO>> - Parameters:
expression- the exoression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
groupBy
Description copied from interface:WhereClauseTerminalAdds a GROUP BY clause to the query, specifying the column(s) to group the results by.- Specified by:
groupByin interfaceWhereClauseTerminal<DTO,DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
columns- the column(s) to group the results by. Each column must be valid for the associated table or view in the query.- Returns:
- an instance of the type representing the GROUP BY clause, allowing further specification of ordering or transitioning to the next query stage.
-
groupBy
Description copied from interface:WhereClauseTerminalAdds a GROUP BY clause to the query, specifying the expressions to group the results by.- Specified by:
groupByin interfaceWhereClauseTerminal<DTO,DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
fields- the expressions to group the results by.- Returns:
- an instance of the type representing the GROUP BY clause, allowing further specification of ordering or transitioning to the next query stage.
-
orderBy
Description copied from interface:WhereClauseTerminalAdds an ORDER BY clause to the query, specifying the expressions to sort the results by.- Specified by:
orderByin interfaceWhereClauseTerminal<DTO,DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<DTO>, DtoOrderByClause<DTO>, DtoOrderByClauseChain<DTO>> - Parameters:
fields- the expressions 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 expressions 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:WhereClauseTerminalAdds an ORDER BY clause to the query, specifying the fields and expressions to sort the results by.- Specified by:
orderByin interfaceWhereClauseTerminal<DTO,DtoGroupByClauseTerminal<DTO>, DtoHavingConditionClause<DTO>, DtoHavingConditionClauseTerminal<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.
-