public class NodeModel extends Object implements Node
| 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 |
getId() |
String[] |
getLabels() |
Set<String> |
getPreviousDynamicLabels() |
String |
getPrimaryIndex() |
List<Property<String,Object>> |
getPropertyList() |
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
|
boolean |
isGeneratedNode() |
String |
labelSignature()
Returns "label signature" for this node - added and removed labels, sorted alphabetically
|
Object |
property(String key) |
void |
setGeneratedNode(boolean generatedNode) |
void |
setLabels(String[] labels) |
void |
setPreviousDynamicCompositeProperties(Set<String> previousDynamicCompositeProperties) |
void |
setPreviousDynamicLabels(Set<String> previousDynamicLabels) |
void |
setPrimaryIndex(String primaryIndex) |
void |
setProperties(Map<String,Object> properties) |
void |
setVersion(Property<String,Long> version) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddCurrentDynamicCompositeProperties, createPropertyRemovalFragment, setPreviousDynamicCompositePropertiespublic NodeModel(Long id)
public boolean isGeneratedNode()
public void setGeneratedNode(boolean generatedNode)
public List<Property<String,Object>> getPropertyList()
getPropertyList in interface Nodepublic String getPrimaryIndex()
getPrimaryIndex in interface Nodepublic void setPrimaryIndex(String primaryIndex)
public Long getId()
getId in interface PropertyContainerpublic Property<String,Long> getVersion()
NodegetVersion in interface NodegetVersion in interface PropertyContainerpublic boolean hasVersionProperty()
NodehasVersionProperty in interface Nodepublic Set<String> getPreviousDynamicLabels()
getPreviousDynamicLabels in interface Nodepublic void setLabels(String[] labels)
public String labelSignature()
NodelabelSignature in interface Nodepublic 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–2023 Neo Technology, Inc.. All rights reserved.