java.lang.Object
org.neo4j.cypherdsl.core.SortItem
- All Implemented Interfaces:
Visitable
A sort item can be used in an
ORDER BY
clause and changes the order of the items being returned from a query.- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@NotNull SortItem
Creates a new sort item from this instance, setting the sort direction to ascending.@NotNull SortItem
Creates a new sort item from this instance, setting the sort direction to descending.toString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.
-
Method Details
-
ascending
Creates a new sort item from this instance, setting the sort direction to ascending.- Returns:
- A new sort item.
-
descending
Creates a new sort item from this instance, setting the sort direction to descending.- Returns:
- A new sort item.
-
accept
Description copied from interface:Visitable
-
toString
Description copied from interface:Visitable
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-