@groovy.transform.CompileStatic class RelationshipUtils extends java.lang.Object
Utility methods for manipulating relationships
Type | Name and description |
---|---|
static char |
INCOMING_CHAR |
static char |
OUTGOING_CHAR |
Constructor and description |
---|
RelationshipUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected static java.lang.String |
getRelationshipType(Association association, Attribute mappedForm) |
|
protected static boolean |
isIncomingRelationship(Association association, Attribute mappedForm) |
|
static java.lang.String |
matchForAssociation(Association association, java.lang.String var, java.util.Map<java.lang.String, java.lang.String> attributes) Build an association match for the given association, variable name and attributes |
|
static java.lang.String |
matchForRelationshipEntity(Association association, RelationshipPersistentEntity entity, java.lang.String var) Build an association match for the given association, variable name and attributes |
|
static java.lang.String |
relationshipTypeUsedFor(Association association) Obtain the Neo4j relationship type for the giveen association |
|
static java.lang.String |
toMatch(Association association, Relationship relationship, java.lang.String var) Build an association match for the given association, variable name and attributes |
|
static boolean |
useReversedMappingFor(Association association) Whether the association is inverse |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
Build an association match for the given association, variable name and attributes @return
association
- The associationvar
- The variable nameattributes
- The attributesBuild an association match for the given association, variable name and attributes @return
association
- The associationvar
- The variable nameattributes
- The attributesObtain the Neo4j relationship type for the giveen association
association
- The associationBuild an association match for the given association, variable name and attributes @return
association
- The associationvar
- The variable nameattributes
- The attributesWhether the association is inverse
association
- The associationGroovy Documentation