java.lang.Object
org.neo4j.ogm.response.model.NodeModel
- All Implemented Interfaces:
Node,PropertyContainer
- Author:
- Michal Bachman, Mark Angrish, Michael J. Simons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCurrentDynamicCompositeProperties(Set<String> additionalDynamicCompositeProperties) createPropertyRemovalFragment(String variable) Should create the Cypher fragment that removes previous composite properties that aren't in the container anymore.booleangetId()String[]Return current version of the node, null if the node is newinthashCode()booleanReturns if the node has version propertybooleanReturns "label signature" for this node - added and removed labels, sorted alphabeticallyvoidsetGeneratedNode(boolean generatedNode) voidvoidsetPreviousDynamicCompositeProperties(Set<String> previousDynamicCompositeProperties) voidsetPreviousDynamicLabels(Set<String> previousDynamicLabels) voidsetPrimaryIndex(String primaryIndex) voidsetProperties(Map<String, Object> properties) voidsetVersion(Property<String, Long> version) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.ogm.model.PropertyContainer
addCurrentDynamicCompositeProperties, createPropertyRemovalFragment, setPreviousDynamicCompositeProperties
-
Constructor Details
-
NodeModel
-
-
Method Details
-
isGeneratedNode
public boolean isGeneratedNode() -
setGeneratedNode
public void setGeneratedNode(boolean generatedNode) -
getPropertyList
- Specified by:
getPropertyListin interfaceNode
-
getPrimaryIndex
- Specified by:
getPrimaryIndexin interfaceNode
-
setPrimaryIndex
-
setProperties
-
getId
- Specified by:
getIdin interfacePropertyContainer
-
getVersion
Description copied from interface:NodeReturn current version of the node, null if the node is new- Specified by:
getVersionin interfaceNode- Specified by:
getVersionin interfacePropertyContainer- Returns:
- version property with current version
-
getLabels
-
setVersion
-
hasVersionProperty
public boolean hasVersionProperty()Description copied from interface:NodeReturns if the node has version property- Specified by:
hasVersionPropertyin interfaceNode
-
getPreviousDynamicLabels
- Specified by:
getPreviousDynamicLabelsin interfaceNode
-
setPreviousDynamicLabels
-
setLabels
-
property
-
labelSignature
Description copied from interface:NodeReturns "label signature" for this node - added and removed labels, sorted alphabetically- Specified by:
labelSignaturein interfaceNode
-
equals
-
hashCode
public int hashCode() -
addCurrentDynamicCompositeProperties
- Specified by:
addCurrentDynamicCompositePropertiesin interfacePropertyContainer
-
setPreviousDynamicCompositeProperties
- Specified by:
setPreviousDynamicCompositePropertiesin interfacePropertyContainer
-
createPropertyRemovalFragment
Description copied from interface:PropertyContainerShould create the Cypher fragment that removes previous composite properties that aren't in the container anymore.- Specified by:
createPropertyRemovalFragmentin interfacePropertyContainer- Parameters:
variable- The variable of the node or relationship to defer.
-