Interface FactDAO


  • public interface FactDAO
    Data Access Object dedicated to Fact
    Author:
    Christopher Laszczuk
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<com.flower.docs.domain.fact.Fact> find​(com.flower.docs.domain.search.SearchRequest request)  
      java.util.List<com.flower.docs.domain.fact.Fact> getByObjectId​(com.flower.docs.domain.common.Id objectId)  
      void store​(java.util.List<com.flower.docs.domain.fact.Fact> facts)
      Stores a fact
    • Method Detail

      • store

        void store​(java.util.List<com.flower.docs.domain.fact.Fact> facts)
            throws com.flower.docs.domain.exception.TechnicalException
        Stores a fact
        Parameters:
        scope - The business scope
        fact - The fact to store
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurs
      • getByObjectId

        java.util.List<com.flower.docs.domain.fact.Fact> getByObjectId​(com.flower.docs.domain.common.Id objectId)
                                                                throws com.flower.docs.domain.exception.TechnicalException
        Parameters:
        objectId -
        Returns:
        all facts for the given object
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        java.io.IOException
        JsonMappingException
        org.springframework.boot.json.JsonParseException
      • find

        java.util.List<com.flower.docs.domain.fact.Fact> find​(com.flower.docs.domain.search.SearchRequest request)
                                                       throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException