Class BaseRecord

    • Constructor Detail

    • Method Detail

      • getRecord

        public Record getRecord​(boolean loadContent)
        Description copied from interface: Identifiable
        Returns the generic record.
        Specified by:
        getRecord in interface Identifiable
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Record
      • reload

        public void reload()
        Specified by:
        reload in interface Record
      • delete

        public void delete()
        Specified by:
        delete in interface Record
      • hashCode

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

        public Binary getBuffer()
      • setBuffer

        public void setBuffer​(Binary buffer)
      • asDocument

        public Document asDocument()
        Description copied from interface: Identifiable
        Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.
        Specified by:
        asDocument in interface Identifiable
        Returns:
        the Document
      • asDocument

        public Document asDocument​(boolean loadContent)
        Description copied from interface: Identifiable
        Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.
        Specified by:
        asDocument in interface Identifiable
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Document
      • asVertex

        public Vertex asVertex()
        Description copied from interface: Identifiable
        Returns the vertex record. If the record is not a vertex, a UnsupportedOperationException exception is thrown.
        Specified by:
        asVertex in interface Identifiable
        Returns:
        the Vertex
      • asVertex

        public Vertex asVertex​(boolean loadContent)
        Description copied from interface: Identifiable
        Returns the vertex record. If the record is not a vertex, a UnsupportedOperationException exception is thrown.
        Specified by:
        asVertex in interface Identifiable
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Vertex
      • asEdge

        public Edge asEdge()
        Description copied from interface: Identifiable
        Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown. *
        Specified by:
        asEdge in interface Identifiable
        Returns:
        the Edge
      • asEdge

        public Edge asEdge​(boolean loadContent)
        Description copied from interface: Identifiable
        Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown.
        Specified by:
        asEdge in interface Identifiable
        Parameters:
        loadContent - specifies if pre-load the record content
        Returns:
        the Edge