public class RelationshipModel extends Object implements Edge
| Constructor and Description |
|---|
RelationshipModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCurrentDynamicCompositeProperties(Set<String> additionalDynamicCompositeProperties) |
String |
createPropertyRemovalFragment(String variable)
Should create the Cypher fragment that removes previous composite properties that aren't in the container anymore.
|
boolean |
equals(Object o) |
Long |
getEndNode() |
Long |
getId() |
String |
getPrimaryIdName()
Returns name of the primary id property (property annotated with @Id)
|
List<Property<String,Object>> |
getPropertyList() |
Long |
getStartNode() |
String |
getType() |
Property<String,Long> |
getVersion()
Return current version of the node, null if the relationship entity is new
|
int |
hashCode() |
boolean |
hasVersionProperty()
Returns if the relationship entity has version property
|
void |
setEndNode(Long endNode) |
void |
setId(Long id) |
void |
setPreviousDynamicCompositeProperties(Set<String> previousDynamicCompositeProperties) |
void |
setPrimaryIdName(String primaryIdPropertyName) |
void |
setProperties(Map<String,Object> properties) |
void |
setStartNode(Long startNode) |
void |
setType(String type) |
void |
setVersion(Property<String,Long> version) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddCurrentDynamicCompositeProperties, createPropertyRemovalFragment, setPreviousDynamicCompositePropertiespublic Long getId()
getId in interface PropertyContainerpublic void setId(Long id)
public Property<String,Long> getVersion()
PropertyContainergetVersion in interface PropertyContainerpublic boolean hasVersionProperty()
EdgehasVersionProperty in interface Edgepublic void setType(String type)
public Long getStartNode()
getStartNode in interface Edgepublic void setStartNode(Long startNode)
public Long getEndNode()
getEndNode in interface Edgepublic void setEndNode(Long endNode)
public List<Property<String,Object>> getPropertyList()
getPropertyList in interface Edgepublic String getPrimaryIdName()
EdgegetPrimaryIdName in interface Edgepublic void setPrimaryIdName(String primaryIdPropertyName)
public void addCurrentDynamicCompositeProperties(Set<String> additionalDynamicCompositeProperties)
addCurrentDynamicCompositeProperties in interface PropertyContainerpublic void setPreviousDynamicCompositeProperties(Set<String> previousDynamicCompositeProperties)
setPreviousDynamicCompositeProperties in interface PropertyContainerpublic String createPropertyRemovalFragment(String variable)
PropertyContainercreatePropertyRemovalFragment in interface PropertyContainervariable - The variable of the node or relationship to defer.Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.