@groovy.transform.CompileStatic trait Node
A domain class that represents a Neo4j Node
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Path<D, D> |
findPath(java.lang.CharSequence cypher)Execute cypher that finds a path to the given entity |
|
static Path<D, D> |
findPath(java.lang.CharSequence cypher, java.util.Map params)Execute cypher that finds a path to the given entity |
<T> |
static Path<D, T> |
findPathTo(java.lang.Class<T> type, java.lang.CharSequence cypher)Execute cypher that finds a path to the given entity |
<T> |
static Path<D, T> |
findPathTo(java.lang.Class<T> type, java.lang.CharSequence cypher, java.util.Map params)Execute cypher that finds a path to the given entity |
<F extends GormEntity, T extends GormEntity> |
static Relationship<F, T> |
findRelationship(F from, T to)Finds a relationship between two entities |
<F extends GormEntity, T extends GormEntity> |
static java.util.List<Relationship<F, T>> |
findRelationships(F from, T to, java.util.Map params = Collections.emptyMap()Finds a relationship between two entities |
<F extends GormEntity, T extends GormEntity> |
static java.util.List<Relationship<F, T>> |
findRelationships(java.lang.Class<F> from, java.lang.Class<T> to, java.util.Map params = Collections.emptyMap()Finds a relationship between two entity types |
<F, T> |
static Path<F, T> |
findShortestPath(F from, T to, int maxDistance = 10)Finds a path between two entities |
|
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 |
Execute cypher that finds a path to the given entity
cypher - The cypherExecute cypher that finds a path to the given entity
cypher - The cypherparams - The parametersExecute cypher that finds a path to the given entity
type - The type to find a path tocypher - The cypherExecute cypher that finds a path to the given entity
cypher - The cypherFinds a relationship between two entities
from - The from entity (can be a proxy)to - The to entity (can be a proxy)Finds a relationship between two entities
from - The from entity (can be a proxy)to - The to entity (can be a proxy)Finds a relationship between two entity types
from - The from entity (can be a proxy)to - The to entity (can be a proxy)Finds a path between two entities
from - The from entity (can be a proxy)to - The to entity (can be a proxy)maxDistance - The maximum distance to traverse (defaults to 10)Allows 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 value