Package apoc.result

Class VirtualNode

java.lang.Object
apoc.result.VirtualNode
All Implemented Interfaces:
org.neo4j.graphdb.Entity, org.neo4j.graphdb.Node

public class VirtualNode extends Object implements org.neo4j.graphdb.Node
Since:
16.03.16
  • Field Details

  • Constructor Details

    • VirtualNode

      public VirtualNode(org.neo4j.graphdb.Label[] labels, Map<String,Object> props)
    • VirtualNode

      public VirtualNode(long nodeId, org.neo4j.graphdb.Label[] labels, Map<String,Object> props)
    • VirtualNode

      public VirtualNode(long nodeId)
    • VirtualNode

      public VirtualNode(org.neo4j.graphdb.Node node, List<String> propertyNames)
  • Method Details

    • from

      public static VirtualNode from(org.neo4j.graphdb.Node node)
    • 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
      Specified by:
      delete in interface org.neo4j.graphdb.Node
    • getRelationships

      public org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Relationship> getRelationships()
      Specified by:
      getRelationships in interface org.neo4j.graphdb.Node
    • hasRelationship

      public boolean hasRelationship()
      Specified by:
      hasRelationship in interface org.neo4j.graphdb.Node
    • getRelationships

      public org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.RelationshipType... relationshipTypes)
      Specified by:
      getRelationships in interface org.neo4j.graphdb.Node
    • getRelationships

      public org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... relationshipTypes)
      Specified by:
      getRelationships in interface org.neo4j.graphdb.Node
    • hasRelationship

      public boolean hasRelationship(org.neo4j.graphdb.RelationshipType... relationshipTypes)
      Specified by:
      hasRelationship in interface org.neo4j.graphdb.Node
    • hasRelationship

      public boolean hasRelationship(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... relationshipTypes)
      Specified by:
      hasRelationship in interface org.neo4j.graphdb.Node
    • getRelationships

      public org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.Direction direction)
      Specified by:
      getRelationships in interface org.neo4j.graphdb.Node
    • hasRelationship

      public boolean hasRelationship(org.neo4j.graphdb.Direction direction)
      Specified by:
      hasRelationship in interface org.neo4j.graphdb.Node
    • getSingleRelationship

      public org.neo4j.graphdb.Relationship getSingleRelationship(org.neo4j.graphdb.RelationshipType relationshipType, org.neo4j.graphdb.Direction direction)
      Specified by:
      getSingleRelationship in interface org.neo4j.graphdb.Node
    • createRelationshipTo

      public VirtualRelationship createRelationshipTo(org.neo4j.graphdb.Node node, org.neo4j.graphdb.RelationshipType relationshipType)
      Specified by:
      createRelationshipTo in interface org.neo4j.graphdb.Node
    • createRelationshipFrom

      public VirtualRelationship createRelationshipFrom(org.neo4j.graphdb.Node start, org.neo4j.graphdb.RelationshipType relationshipType)
    • getRelationshipTypes

      public Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()
      Specified by:
      getRelationshipTypes in interface org.neo4j.graphdb.Node
    • getDegree

      public int getDegree()
      Specified by:
      getDegree in interface org.neo4j.graphdb.Node
    • getDegree

      public int getDegree(org.neo4j.graphdb.RelationshipType relationshipType)
      Specified by:
      getDegree in interface org.neo4j.graphdb.Node
    • getDegree

      public int getDegree(org.neo4j.graphdb.Direction direction)
      Specified by:
      getDegree in interface org.neo4j.graphdb.Node
    • getDegree

      public int getDegree(org.neo4j.graphdb.RelationshipType relationshipType, org.neo4j.graphdb.Direction direction)
      Specified by:
      getDegree in interface org.neo4j.graphdb.Node
    • addLabel

      public void addLabel(org.neo4j.graphdb.Label label)
      Specified by:
      addLabel in interface org.neo4j.graphdb.Node
    • addLabels

      public void addLabels(Iterable<org.neo4j.graphdb.Label> labels)
    • removeLabel

      public void removeLabel(org.neo4j.graphdb.Label label)
      Specified by:
      removeLabel in interface org.neo4j.graphdb.Node
    • hasLabel

      public boolean hasLabel(org.neo4j.graphdb.Label label)
      Specified by:
      hasLabel in interface org.neo4j.graphdb.Node
    • getLabels

      public Iterable<org.neo4j.graphdb.Label> getLabels()
      Specified by:
      getLabels in interface org.neo4j.graphdb.Node
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object