Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface StatementBuilder.ExposesOrderBy
- All Known Subinterfaces:
StatementBuilder.OrderableOngoingReadingAndWith
,StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere
,StatementBuilder.OrderableOngoingReadingAndWithWithWhere
- Enclosing interface:
StatementBuilder
public static interface StatementBuilder.ExposesOrderBy
See
StatementBuilder.TerminalExposesOrderBy
, but on a with clause.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorderBy
(Collection<SortItem> sortItem) Order the result set by one or moresort items
.orderBy
(@NotNull Expression expression) Order the result set by an expression.Order the result set by one or moresort items
.
-
Method Details
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.OrderableOngoingReadingAndWithWithWhere orderBy(SortItem... sortItem) Order the result set by one or moresort items
. Those can be retrieved for all expression withCypher.sort(Expression)
or directly from properties.- Parameters:
sortItem
- One or more sort items- Returns:
- A build step that still offers methods for defining skip and limit
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.OrderableOngoingReadingAndWithWithWhere orderBy(Collection<SortItem> sortItem) Order the result set by one or moresort items
. Those can be retrieved for all expression withCypher.sort(Expression)
or directly from properties.- Parameters:
sortItem
- One or more sort items- Returns:
- A build step that still offers methods for defining skip and limit
- Since:
- 2021.2.2
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.OngoingOrderDefinition orderBy(@NotNull @NotNull Expression expression) Order the result set by an expression.- Parameters:
expression
- The expression to order by- Returns:
- A step that allows for adding more expression or fine-tuning the sort direction of the last expression
-