@groovy.transform.CompileStatic trait Neo4jEntity
Extends the default {@org.grails.datastore.gorm.GormEntity} trait, adding new methods specific to Neo4j
Type Params | Return Type | Name and description |
---|---|---|
|
org.neo4j.driver.v1.StatementResult |
cypher(java.lang.String queryString, java.util.Map params) perform a cypher query |
|
org.neo4j.driver.v1.StatementResult |
cypher(java.lang.String queryString, java.util.List params) perform a cypher query |
|
org.neo4j.driver.v1.StatementResult |
cypher(java.lang.String queryString) perform a cypher query |
|
static org.neo4j.driver.v1.StatementResult |
cypherStatic(java.lang.String queryString, java.util.Map params) perform a cypher query |
|
static org.neo4j.driver.v1.StatementResult |
cypherStatic(java.lang.String queryString, java.util.List params) perform a cypher query |
|
static org.neo4j.driver.v1.StatementResult |
cypherStatic(java.lang.String queryString) perform a cypher query |
|
static java.util.List<D> |
executeQuery(java.lang.String query, java.util.Map params = [:], java.util.Map args = Collections.emptyMap() @see cypherStatic(java.lang.String, java.util.Map) |
|
static java.util.List<D> |
executeQuery(java.lang.String query, java.util.Collection params, java.util.Map args) @see cypherStatic(java.lang.String, java.util.Map) |
|
static D |
find(java.lang.String query, java.util.Collection params, java.util.Map args = Collections.emptyMap() Finds a single result using the given cypher query, converting the result to a domain instance |
|
static D |
find(java.lang.String query, java.util.Map params = [:], java.util.Map args = Collections.emptyMap() Finds a single result using the given cypher query, converting the result to a domain instance |
|
static D |
find(java.lang.String query, java.lang.Object[] params) Varargs version of find(java.lang.String, java.util.Collection, java.util.Map) |
|
static java.util.List<D> |
findAll(java.lang.String query, java.util.Collection params, java.util.Map args) Finds all results using the given cypher query, converting each result to a domain instance |
|
static java.util.List<D> |
findAll(java.lang.String query, java.lang.Object[] params) Varargs version of findAll(java.lang.String, java.util.Collection, java.util.Map) |
|
static java.util.List<D> |
findAll(java.lang.String query, java.util.Map params = [:], java.util.Map args = Collections.emptyMap() Finds all results using the given cypher query, converting each result to a domain instance |
|
java.lang.Object |
propertyMissing(java.lang.String name) Allows accessing to dynamic properties with the dot operator |
|
java.lang.Object |
propertyMissing(java.lang.String name, java.lang.Object val) Allows setting a dynamic property via the dot operator |
<T> |
static T |
withConnection(java.lang.String connectionName, groovy.lang.Closure callable) Perform an operation with the given connection |
perform a cypher query
perform a cypher query
perform a cypher query
perform a cypher query
perform a cypher query
perform a cypher query
Finds a single result using the given cypher query, converting the result to a domain instance
query
- The cypher queryparams
- The positional parametersargs
- The arguments to the queryFinds a single result using the given cypher query, converting the result to a domain instance
query
- The cypher queryparams
- The parametersargs
- The arguments to the queryVarargs version of find(java.lang.String, java.util.Collection, java.util.Map)
Finds all results using the given cypher query, converting each result to a domain instance
query
- The cypher queryparams
- The positional parametersargs
- The arguments to the queryVarargs version of findAll(java.lang.String, java.util.Collection, java.util.Map)
Finds all results using the given cypher query, converting each result to a domain instance
query
- The cypher queryparams
- The parametersargs
- The arguments to the queryAllows accessing to dynamic properties with the dot operator
instance
- The instancename
- The property nameAllows setting a dynamic property via the dot operator
instance
- The instancename
- The property nameval
- The valuePerform an operation with the given connection
connectionName
- The name of the connectioncallable
- The operation