Interface ModificationListener<O>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addAll​(ObjectSet<O> objectSet, QueryOptions queryOptions)
      Notifies the listener that the specified objects are being added to the collection, and so it can take action and update its internal data structures.
      void clear​(QueryOptions queryOptions)
      Notifies the listener that all objects have been removed from the collection, and so it can take action and update its internal data structures.
      void destroy​(QueryOptions queryOptions)
      Notifies the listener that it has been removed from the collection, so that it can take action to delete internal data structures.
      void init​(ObjectStore<O> objectStore, QueryOptions queryOptions)
      Notifies the listener that the given ObjectStore has just been created.
      boolean removeAll​(ObjectSet<O> objectSet, QueryOptions queryOptions)
      Notifies the listener that the specified objects are being removed from the collection, and so it can take action and update its internal data structures.
    • Method Detail

      • addAll

        boolean addAll​(ObjectSet<O> objectSet,
                       QueryOptions queryOptions)
        Notifies the listener that the specified objects are being added to the collection, and so it can take action and update its internal data structures.
        Parameters:
        objectSet - The objects being added
        queryOptions - Optional parameters for the update
      • removeAll

        boolean removeAll​(ObjectSet<O> objectSet,
                          QueryOptions queryOptions)
        Notifies the listener that the specified objects are being removed from the collection, and so it can take action and update its internal data structures.
        Parameters:
        objectSet - The objects being removed
        queryOptions - Optional parameters for the update
      • clear

        void clear​(QueryOptions queryOptions)
        Notifies the listener that all objects have been removed from the collection, and so it can take action and update its internal data structures.
        Parameters:
        queryOptions - Optional parameters for the update
      • init

        void init​(ObjectStore<O> objectStore,
                  QueryOptions queryOptions)
        Notifies the listener that the given ObjectStore has just been created.
        Parameters:
        objectStore - The ObjectStore which persists objects
        queryOptions - Optional parameters for the update
      • destroy

        void destroy​(QueryOptions queryOptions)
        Notifies the listener that it has been removed from the collection, so that it can take action to delete internal data structures.
        Parameters:
        queryOptions - Optional parameters for the update