Class OrientElement

java.lang.Object
org.apache.tinkerpop.gremlin.orientdb.OrientElement
All Implemented Interfaces:
OIdentifiable, Comparable<OIdentifiable>, Comparator<OIdentifiable>, org.apache.tinkerpop.gremlin.structure.Element
Direct Known Subclasses:
OrientEdge, OrientVertex

public abstract class OrientElement extends Object implements org.apache.tinkerpop.gremlin.structure.Element, OIdentifiable
  • Field Details

    • rawElement

      protected OElement rawElement
    • graph

      protected OGraph graph
  • Constructor Details

    • OrientElement

      public OrientElement(OGraph graph, OElement rawElement)
  • Method Details

    • id

      public ORID id()
      Specified by:
      id in interface org.apache.tinkerpop.gremlin.structure.Element
    • label

      public String label()
      Specified by:
      label in interface org.apache.tinkerpop.gremlin.structure.Element
    • graph

      public org.apache.tinkerpop.gremlin.structure.Graph graph()
      Specified by:
      graph in interface org.apache.tinkerpop.gremlin.structure.Element
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key, V value)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
    • property

      public void property(Object... keyValues)
    • properties

      public <V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys)
      Specified by:
      properties in interface org.apache.tinkerpop.gremlin.structure.Element
    • remove

      public void remove()
      Specified by:
      remove in interface org.apache.tinkerpop.gremlin.structure.Element
    • save

      public void save()
    • getGraph

      public OGraph getGraph()
    • getRawElement

      public abstract OElement getRawElement()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object object)
      Specified by:
      equals in interface Comparator<OIdentifiable>
      Overrides:
      equals in class Object
    • getIdentity

      public ORID getIdentity()
      Description copied from interface: OIdentifiable
      Returns the record identity.
      Specified by:
      getIdentity in interface OIdentifiable
      Returns:
      ORID instance
    • getRecord

      public <T extends ORecord> T getRecord()
      Description copied from interface: OIdentifiable
      Returns the record instance.
      Specified by:
      getRecord in interface OIdentifiable
      Returns:
      ORecord instance
    • compareTo

      public int compareTo(OIdentifiable o)
      Specified by:
      compareTo in interface Comparable<OIdentifiable>
    • compare

      public int compare(OIdentifiable o1, OIdentifiable o2)
      Specified by:
      compare in interface Comparator<OIdentifiable>