Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface StatementBuilder.TerminalExposesOrderBy
- All Known Subinterfaces:
StatementBuilder.OngoingReadingAndReturn
- Enclosing interface:
- StatementBuilder
public static interface StatementBuilder.TerminalExposesOrderBy
A step that exposes several methods to specify ordering. This is a terminal
operation just before a statement is buildable.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorderBy(Collection<SortItem> sortItem) Order the result set by one or moresort items.orderBy(Expression expression) Order the result set by an expression.Order the result set by one or moresort items.
-
Method Details
-
orderBy
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
@CheckReturnValue StatementBuilder.OngoingMatchAndReturnWithOrder 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
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
-