public class NodeModel extends Object implements Node
| Type | Property and Description |
|---|---|
boolean |
hasVersion
Returns if the node has version property
|
| Constructor and Description |
|---|
NodeModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId() |
String[] |
getLabels() |
String |
getPrimaryIndex() |
List<Property<String,Object>> |
getPropertyList() |
String[] |
getRemovedLabels() |
Property<String,Long> |
getVersion()
Return current version of the node, null if the node is new
|
int |
hashCode() |
boolean |
hasVersionProperty()
Returns if the node has version property
|
String |
labelSignature()
Returns "label signature" for this node - added and removed labels, sorted alphabetically
|
Object |
property(String key) |
void |
removeLabels(String[] labels) |
void |
setId(Long id) |
void |
setLabels(String[] labels) |
void |
setPrimaryIndex(String primaryIndex) |
void |
setProperties(Map<String,Object> properties) |
void |
setVersion(Property<String,Long> version) |
public boolean hasVersionProperty
hasVersionProperty in interface Nodepublic List<Property<String,Object>> getPropertyList()
getPropertyList in interface Nodepublic String getPrimaryIndex()
getPrimaryIndex in interface Nodepublic void setPrimaryIndex(String primaryIndex)
public Property<String,Long> getVersion()
NodegetVersion in interface NodegetVersion in interface PropertyContainerpublic String[] getRemovedLabels()
getRemovedLabels in interface Nodepublic void setId(Long id)
public boolean hasVersionProperty()
NodehasVersionProperty in interface Nodepublic void setLabels(String[] labels)
public void removeLabels(String[] labels)
public String labelSignature()
NodelabelSignature in interface NodeCopyright © 2018 Neo Technology, Inc.. All rights reserved.