Class OResultInternal

java.lang.Object
com.orientechnologies.orient.core.sql.executor.OResultInternal
All Implemented Interfaces:
OResult, Comparable<OResultInternal>
Direct Known Subclasses:
OTraverseResult, OUpdatableResult

public class OResultInternal extends Object implements OResult, Comparable<OResultInternal>
Created by luigidellaquila on 06/07/16.
  • Field Details

  • Constructor Details

    • OResultInternal

      public OResultInternal()
    • OResultInternal

      public OResultInternal(OIdentifiable ident)
  • Method Details

    • setProperty

      public void setProperty(String name, Object value)
    • setTemporaryProperty

      public void setTemporaryProperty(String name, Object value)
    • getTemporaryProperty

      public Object getTemporaryProperty(String name)
    • getTemporaryProperties

      public Set<String> getTemporaryProperties()
    • removeProperty

      public void removeProperty(String name)
    • getProperty

      public <T> T getProperty(String name)
      Description copied from interface: OResult
      returns a property from the result
      Specified by:
      getProperty in interface OResult
      Type Parameters:
      T -
      Parameters:
      name - the property name
      Returns:
      the property value. If the property value is a persistent record, it only returns the RID. See also OResult.getElementProperty(String) OResult.getVertexProperty(String) OResult.getEdgeProperty(String) OResult.getBlobProperty(String)
    • getElementProperty

      public OElement getElementProperty(String name)
      Description copied from interface: OResult
      returns an OElement property from the result
      Specified by:
      getElementProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OElement
    • getVertexProperty

      public OVertex getVertexProperty(String name)
      Description copied from interface: OResult
      returns an OVertex property from the result
      Specified by:
      getVertexProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OVertex
    • getEdgeProperty

      public OEdge getEdgeProperty(String name)
      Description copied from interface: OResult
      returns an OEdge property from the result
      Specified by:
      getEdgeProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OEdge
    • getBlobProperty

      public OBlob getBlobProperty(String name)
      Description copied from interface: OResult
      returns an OBlob property from the result
      Specified by:
      getBlobProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OBlob
    • getPropertyNames

      public Set<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface OResult
    • hasProperty

      public boolean hasProperty(String propName)
      Specified by:
      hasProperty in interface OResult
    • isElement

      public boolean isElement()
      Specified by:
      isElement in interface OResult
    • getElement

      public Optional<OElement> getElement()
      Specified by:
      getElement in interface OResult
    • toElement

      public OElement toElement()
      Specified by:
      toElement in interface OResult
    • getIdentity

      public Optional<ORID> getIdentity()
      Specified by:
      getIdentity in interface OResult
    • isProjection

      public boolean isProjection()
      Specified by:
      isProjection in interface OResult
    • getRecord

      public Optional<ORecord> getRecord()
      Specified by:
      getRecord in interface OResult
    • isBlob

      public boolean isBlob()
      Specified by:
      isBlob in interface OResult
    • getBlob

      public Optional<OBlob> getBlob()
      Specified by:
      getBlob in interface OResult
    • getMetadata

      public Object getMetadata(String key)
      Description copied from interface: OResult
      return metadata related to current result given a key
      Specified by:
      getMetadata in interface OResult
      Parameters:
      key - the metadata key
      Returns:
      metadata related to current result given a key
    • setMetadata

      public void setMetadata(String key, Object value)
    • clearMetadata

      public void clearMetadata()
    • removeMetadata

      public void removeMetadata(String key)
    • addMetadata

      public void addMetadata(Map<String,Object> values)
    • getMetadataKeys

      public Set<String> getMetadataKeys()
      Description copied from interface: OResult
      return all the metadata keys available
      Specified by:
      getMetadataKeys in interface OResult
      Returns:
      all the metadata keys available
    • loadElement

      public void loadElement()
    • setElement

      public void setElement(OIdentifiable element)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

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

      public void bindToCache(ODatabaseDocumentInternal db)
    • compareTo

      public int compareTo(OResultInternal o)
      Specified by:
      compareTo in interface Comparable<OResultInternal>