Package org.neo4j.ogm.model
Interface Node
- All Superinterfaces:
PropertyContainer
- All Known Implementing Classes:
NodeModel
- Author:
- Vince Bickers, Mark Angrish, Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionString[]Return current version of the node, null if the node is newbooleanReturns if the node has version propertyReturns "label signature" for this node - added and removed labels, sorted alphabeticallyTurns this node object into a row.Methods inherited from interface org.neo4j.ogm.model.PropertyContainer
addCurrentDynamicCompositeProperties, createPropertyRemovalFragment, getId, setPreviousDynamicCompositeProperties
-
Method Details
-
getLabels
String[] getLabels() -
getPropertyList
-
getPrimaryIndex
String getPrimaryIndex() -
labelSignature
String labelSignature()Returns "label signature" for this node - added and removed labels, sorted alphabetically -
hasVersionProperty
boolean hasVersionProperty()Returns if the node has version property -
getVersion
Return current version of the node, null if the node is new- Specified by:
getVersionin interfacePropertyContainer- Returns:
- version property with current version
-
getPreviousDynamicLabels
-
toRow
Turns this node object into a row. The version field is treated different, it is not included with the standard properties, but only as separate value.- Parameters:
nodeIdTarget- The name under which to store this nodes id. The value is used as a backreference.- Returns:
- A map of values representing this node.
-