@groovy.transform.CompileStatic class Neo4jExtensions extends java.lang.Object
Extension methods to improve the Neo4j experience in Groovy.
Constructor and description |
---|
Neo4jExtensions
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.Boolean |
asBoolean(org.neo4j.driver.types.MapAccessor node) Allows the subscript operator on nodes |
<N> |
static N |
asType(org.neo4j.driver.types.Node node, java.lang.Class<N> c) Allow casting from Node to domain class |
<N> |
static N |
asType(org.neo4j.driver.types.Relationship rel, java.lang.Class<N> c) Allow casting from Relationship to a relationship domain class |
|
static grails.neo4j.Path |
asType(grails.neo4j.Path path, Path> c) Allow casting from a Neo4j path to a GORM Path |
<N> |
static N |
asType(org.neo4j.driver.Result result, java.lang.Class<N> c) Allow casting from Result to domain class |
|
static org.neo4j.driver.Result |
execute(org.neo4j.driver.QueryRunner session, java.lang.String cypher, java.util.List<java.lang.Object> positionalParameters) Executes a cypher query with positional parameters |
|
static java.lang.Object |
getAt(org.neo4j.driver.types.MapAccessor node, java.lang.String name) Allows the subscript operator on nodes |
|
static java.lang.Object |
getProperty(org.neo4j.driver.types.MapAccessor node, java.lang.String name) Allows the dot operator on nodes |
<N> |
static java.util.List<N> |
toList(org.neo4j.driver.Result result, java.lang.Class<N> c) Allow casting from Result to a list of domain class |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Allows the subscript operator on nodes
Allow casting from Node to domain class
node
- The nodec
- The domain class typeAllow casting from Relationship to a relationship domain class
rel
- The relc
- The domain class typeAllow casting from a Neo4j path to a GORM Path
path
- The pathc
- The domain class typeAllow casting from Result to domain class
node
- The nodec
- The domain class typeExecutes a cypher query with positional parameters
databaseService
- The GraphDatabaseServicecypher
- The cypher querypositionalParameters
- The position parametersAllows the subscript operator on nodes
Allows the dot operator on nodes
Allow casting from Result to a list of domain class
node
- The nodec
- The domain class type