Class C8EventImpl

    • Method Detail

      • insertEvent

        public <T> C8EventEntity insertEvent​(T value)
                                      throws C8DBException
        Description copied from interface: C8Event
        Creates a new document from the given document, unless there is already a document with the _key given. If no _key is given, a new unique _key is generated automatically.
        Specified by:
        insertEvent in interface C8Event
        Parameters:
        value - A representation of a single document (POJO, VPackSlice or String for JSON)
        Returns:
        information about the document
        Throws:
        C8DBException
      • insertEvent

        public <T> C8EventEntity insertEvent​(T value,
                                             EventCreateOptions options)
                                      throws C8DBException
        Description copied from interface: C8Event
        Creates a new document from the given document, unless there is already a document with the _key given. If no _key is given, a new unique _key is generated automatically.
        Specified by:
        insertEvent in interface C8Event
        Parameters:
        value - A representation of a single document (POJO, VPackSlice or String for JSON)
        options - Additional options, can be null
        Returns:
        information about the document
        Throws:
        C8DBException
      • getEvent

        public C8EventEntity getEvent​(String key)
                               throws C8DBException
        Description copied from interface: C8Event
        Retrieves the document with the given key from the collection.
        Specified by:
        getEvent in interface C8Event
        Parameters:
        key - The key of the document
        Returns:
        the document identified by the key
        Throws:
        C8DBException
      • deleteEvent

        public void deleteEvent​(String key)
                         throws C8DBException
        Description copied from interface: C8Event
        Deletes the document with the given key from the collection.
        Specified by:
        deleteEvent in interface C8Event
        Parameters:
        key - The key of the document
        Throws:
        C8DBException
      • deleteEvents

        public void deleteEvents​(Collection<?> values)
                          throws C8DBException
        Description copied from interface: C8Event
        Deletes multiple documents from the collection.
        Specified by:
        deleteEvents in interface C8Event
        Parameters:
        values - The keys of the documents or the documents themselves
        Throws:
        C8DBException