Interface GenericDAO<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(java.util.List<com.flower.docs.domain.common.Id> ids)
      Deletes a list of objects
      java.util.List<T> fetch​(java.util.List<com.flower.docs.domain.common.Id> ids)
      Fetches a list of objects
      void store​(java.util.List<T> objects)
      Stores a list of Component
      void update​(java.util.List<T> objects)
      Updates a list of objects
    • Method Detail

      • store

        void store​(java.util.List<T> objects)
            throws com.flower.docs.domain.exception.TechnicalException
        Stores a list of Component
        Parameters:
        objects - The objects to store
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If a error occurred while storing
      • fetch

        java.util.List<T> fetch​(java.util.List<com.flower.docs.domain.common.Id> ids)
                         throws com.flower.docs.domain.exception.TechnicalException
        Fetches a list of objects
        Parameters:
        ids - The unique identifiers of objects to fetch
        Returns:
        The fetch objects
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If an error occurred while fetching
      • update

        void update​(java.util.List<T> objects)
             throws com.flower.docs.domain.exception.TechnicalException
        Updates a list of objects
        Parameters:
        objects - The objects to update
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If an error occurred while updating
      • delete

        void delete​(java.util.List<com.flower.docs.domain.common.Id> ids)
             throws com.flower.docs.domain.exception.TechnicalException
        Deletes a list of objects
        Parameters:
        ids - The unidque identifiers of objects to delete
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If an error occurred while deleting