Package com.arangodb

Interface ArangoVertexCollection

    • Method Detail

      • graph

        ArangoGraph graph()
        The the handler of the named graph the edge collection is within
        Returns:
        graph handler
      • name

        String name()
        The name of the edge collection
        Returns:
        collection name
      • remove

        void remove()
        Remove a vertex collection form the graph.
        See Also:
        API Documentation
      • insertVertex

        VertexEntity insertVertex​(Object value)
        Creates a new vertex in the collection
        Parameters:
        value - A representation of a single vertex (POJO or RawData)
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • insertVertex

        VertexEntity insertVertex​(Object value,
                                  VertexCreateOptions options)
        Creates a new vertex in the collection
        Parameters:
        value - A representation of a single vertex (POJO or RawData)
        options - Additional options, can be null
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • getVertex

        <T> T getVertex​(String key,
                        Class<T> type)
        Retrieves the vertex document with the given key from the collection.
        Parameters:
        key - The key of the vertex
        type - The type of the vertex-document (POJO or RawData)
        Returns:
        the vertex identified by the key
        See Also:
        API Documentation
      • getVertex

        <T> T getVertex​(String key,
                        Class<T> type,
                        GraphDocumentReadOptions options)
        Retrieves the vertex document with the given key from the collection.
        Parameters:
        key - The key of the vertex
        type - The type of the vertex-document (POJO or RawData)
        options - Additional options, can be null
        Returns:
        the vertex identified by the key
        See Also:
        API Documentation
      • replaceVertex

        VertexUpdateEntity replaceVertex​(String key,
                                         Object value)
        Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated
        Parameters:
        key - The key of the vertex
        value - A representation of a single vertex (POJO or RawData)
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • replaceVertex

        VertexUpdateEntity replaceVertex​(String key,
                                         Object value,
                                         VertexReplaceOptions options)
        Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated
        Parameters:
        key - The key of the vertex
        value - A representation of a single vertex (POJO or RawData)
        options - Additional options, can be null
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • updateVertex

        VertexUpdateEntity updateVertex​(String key,
                                        Object value)
        Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.
        Parameters:
        key - The key of the vertex
        value - A representation of a single vertex (POJO or RawData)
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • updateVertex

        VertexUpdateEntity updateVertex​(String key,
                                        Object value,
                                        VertexUpdateOptions options)
        Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.
        Parameters:
        key - The key of the vertex
        value - A representation of a single vertex (POJO or RawData)
        options - Additional options, can be null
        Returns:
        information about the vertex
        See Also:
        API Documentation
      • deleteVertex

        void deleteVertex​(String key)
        Deletes the vertex with the given key from the collection.
        Parameters:
        key - The key of the vertex
        See Also:
        API Documentation
      • deleteVertex

        void deleteVertex​(String key,
                          VertexDeleteOptions options)
        Deletes the vertex with the given key from the collection.
        Parameters:
        key - The key of the vertex
        options - Additional options, can be null
        See Also:
        API Documentation