Package n10s.result

Class VirtualRelationship

java.lang.Object
n10s.result.VirtualRelationship
All Implemented Interfaces:
org.neo4j.graphdb.Entity, org.neo4j.graphdb.Relationship

public class VirtualRelationship extends Object implements org.neo4j.graphdb.Relationship
(taken from APOC)
Since:
16.03.16
Author:
mh
  • Constructor Details

    • VirtualRelationship

      public VirtualRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type)
    • VirtualRelationship

      public VirtualRelationship(long id, org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> props)
    • VirtualRelationship

      public VirtualRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> props)
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface org.neo4j.graphdb.Entity
    • getElementId

      public String getElementId()
      Specified by:
      getElementId in interface org.neo4j.graphdb.Entity
    • delete

      public void delete()
      Specified by:
      delete in interface org.neo4j.graphdb.Entity
    • getStartNode

      public org.neo4j.graphdb.Node getStartNode()
      Specified by:
      getStartNode in interface org.neo4j.graphdb.Relationship
    • getEndNode

      public org.neo4j.graphdb.Node getEndNode()
      Specified by:
      getEndNode in interface org.neo4j.graphdb.Relationship
    • getOtherNode

      public org.neo4j.graphdb.Node getOtherNode(org.neo4j.graphdb.Node node)
      Specified by:
      getOtherNode in interface org.neo4j.graphdb.Relationship
    • getNodes

      public org.neo4j.graphdb.Node[] getNodes()
      Specified by:
      getNodes in interface org.neo4j.graphdb.Relationship
    • getType

      public org.neo4j.graphdb.RelationshipType getType()
      Specified by:
      getType in interface org.neo4j.graphdb.Relationship
    • isType

      public boolean isType(org.neo4j.graphdb.RelationshipType relationshipType)
      Specified by:
      isType in interface org.neo4j.graphdb.Relationship
    • hasProperty

      public boolean hasProperty(String s)
      Specified by:
      hasProperty in interface org.neo4j.graphdb.Entity
    • getProperty

      public Object getProperty(String s)
      Specified by:
      getProperty in interface org.neo4j.graphdb.Entity
    • getProperty

      public Object getProperty(String s, Object o)
      Specified by:
      getProperty in interface org.neo4j.graphdb.Entity
    • setProperty

      public void setProperty(String s, Object o)
      Specified by:
      setProperty in interface org.neo4j.graphdb.Entity
    • removeProperty

      public Object removeProperty(String s)
      Specified by:
      removeProperty in interface org.neo4j.graphdb.Entity
    • getPropertyKeys

      public Iterable<String> getPropertyKeys()
      Specified by:
      getPropertyKeys in interface org.neo4j.graphdb.Entity
    • getProperties

      public Map<String,Object> getProperties(String... strings)
      Specified by:
      getProperties in interface org.neo4j.graphdb.Entity
    • getAllProperties

      public Map<String,Object> getAllProperties()
      Specified by:
      getAllProperties in interface org.neo4j.graphdb.Entity
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withProperties

      public org.neo4j.graphdb.Relationship withProperties(Map<String,Object> props)
    • toString

      public String toString()
      Overrides:
      toString in class Object