@API(status=INTERNAL,
since="6.0.2")
public final class Neo4jSpelSupport
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FUNCTION_LITERAL |
static String |
FUNCTION_ORDER_BY |
| Constructor and Description |
|---|
Neo4jSpelSupport() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.data.neo4j.repository.query.Neo4jSpelSupport.LiteralReplacement |
literal(Object arg)
Turns the arguments of this function into a literal replacement for the SpEL placeholder (instead of creating
Cypher parameters).
|
static org.springframework.data.neo4j.repository.query.Neo4jSpelSupport.LiteralReplacement |
orderBy(Object arg)
Takes
arg and tries to either extract a sort from it or cast it to a sort. |
public static String FUNCTION_LITERAL
public static String FUNCTION_ORDER_BY
public static org.springframework.data.neo4j.repository.query.Neo4jSpelSupport.LiteralReplacement orderBy(@Nullable Object arg)
arg and tries to either extract a sort from it or cast it to a sort. That sort is
than past to the CypherGenerator that renders a valid order by fragment which replaces the SpEL placeholder
without further validation whether it's attributes are in the query or similar literal.arg - The sort object to order the result set of the final query.public static org.springframework.data.neo4j.repository.query.Neo4jSpelSupport.LiteralReplacement literal(@Nullable Object arg)
arg - The object that will be inserted as a literal String into the query. It's toString() method will be used.Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.