public class Relationship extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Relationship.Direction
Direction of the relationship
OUTGOING: from source to target
INCOMING: from target to source
BOTH: two relationships, from target to source and to source from target
NODE: unique relationship between two nodes (direction has no importance)
|
static class |
Relationship.FindSyntax
Neo4j Cypher keyword used to retrieve a node (usually applied to the target node)
MATCH: find the target node and create the relationship only if the target node exists
MERGE: find or create the target node and create the relationship
|
Constructor and Description |
---|
Relationship() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Relationship.Direction |
getDirection() |
String |
getSourcePropertyKey() |
Relationship.FindSyntax |
getTargetFindSyntax() |
String |
getTargetPropertyKey() |
String |
getType() |
int |
hashCode() |
void |
setDirection(Relationship.Direction direction) |
void |
setSourcePropertyKey(String childPropertyKey) |
void |
setTargetFindSyntax(Relationship.FindSyntax targetFindSyntax) |
void |
setTargetPropertyKey(String parentPropertyKey) |
void |
setType(String type) |
String |
toString() |
public String getType()
public void setType(String type)
public String getTargetPropertyKey()
public void setTargetPropertyKey(String parentPropertyKey)
public String getSourcePropertyKey()
public void setSourcePropertyKey(String childPropertyKey)
public Relationship.Direction getDirection()
public void setDirection(Relationship.Direction direction)
public Relationship.FindSyntax getTargetFindSyntax()
public void setTargetFindSyntax(Relationship.FindSyntax targetFindSyntax)
Copyright © 2018–2020 Norconex Inc.. All rights reserved.