Interface Identifiable

    • Method Detail

      • getIdentity

        RID getIdentity()
        Returns the RID (Record ID) for the current object.
        Returns:
        the RID
      • getRecord

        Record getRecord​(boolean loadContent)
        Returns the generic record.
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Record
      • getRecord

        Record getRecord()
        Returns the generic record by pre-loading also its content.
        Returns:
        the Record
      • asDocument

        Document asDocument()
        Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.
        Returns:
        the Document
      • asDocument

        Document asDocument​(boolean loadContent)
        Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Document
      • asVertex

        Vertex asVertex()
        Returns the vertex record. If the record is not a vertex, a UnsupportedOperationException exception is thrown.
        Returns:
        the Vertex
      • asVertex

        Vertex asVertex​(boolean loadContent)
        Returns the vertex record. If the record is not a vertex, a UnsupportedOperationException exception is thrown.
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Vertex
      • asEdge

        Edge asEdge()
        Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown. *
        Returns:
        the Edge
      • asEdge

        Edge asEdge​(boolean loadContent)
        Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown.
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Edge