Package org.neo4j.ogm.response.model
Class RelationshipModel
java.lang.Object
org.neo4j.ogm.response.model.RelationshipModel
- All Implemented Interfaces:
Edge,PropertyContainer
- Author:
- Michal Bachman, 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()Returns name of the primary id property (property annotated with @Id)getType()Return current version of the node, null if the relationship entity is newinthashCode()booleanReturns if the relationship entity has version propertyvoidsetEndNode(Long endNode) voidvoidsetPreviousDynamicCompositeProperties(Set<String> previousDynamicCompositeProperties) voidsetPrimaryIdName(String primaryIdPropertyName) voidsetProperties(Map<String, Object> properties) voidsetStartNode(Long startNode) voidvoidsetVersion(Property<String, Long> version) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.neo4j.ogm.model.PropertyContainer
addCurrentDynamicCompositeProperties, createPropertyRemovalFragment, setPreviousDynamicCompositeProperties
-
Constructor Details
-
RelationshipModel
public RelationshipModel()
-
-
Method Details
-
getId
- Specified by:
getIdin interfacePropertyContainer
-
setId
-
getVersion
Description copied from interface:PropertyContainerReturn current version of the node, null if the relationship entity is new- Specified by:
getVersionin interfacePropertyContainer- Returns:
- version property with current version
-
setVersion
-
hasVersionProperty
public boolean hasVersionProperty()Description copied from interface:EdgeReturns if the relationship entity has version property- Specified by:
hasVersionPropertyin interfaceEdge
-
getType
-
setType
-
getStartNode
- Specified by:
getStartNodein interfaceEdge
-
setStartNode
-
getEndNode
- Specified by:
getEndNodein interfaceEdge
-
setEndNode
-
getPropertyList
- Specified by:
getPropertyListin interfaceEdge
-
getPrimaryIdName
Description copied from interface:EdgeReturns name of the primary id property (property annotated with @Id)- Specified by:
getPrimaryIdNamein interfaceEdge
-
setProperties
-
setPrimaryIdName
-
toString
-
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.
-