public class RelationshipModel extends Object implements Edge
| Type | Property and Description |
|---|---|
boolean |
hasVersion
Returns if the relationship entity has version property
|
| Constructor and Description |
|---|
RelationshipModel() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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() |
public boolean hasVersionProperty
hasVersionProperty in interface Edgepublic 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)
Copyright © 2018 Neo Technology, Inc.. All rights reserved.