Class FHIRPersistenceContextFactory


  • public class FHIRPersistenceContextFactory
    extends Object
    This is a factory used to create instances of the FHIRPersistenceContext interface.
    • Method Detail

      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent instance.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event,
                                                                      boolean includeDeleted)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent instance.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        includeDeleted - flag to tell the persistence layer to include deleted resources in the operation results.
      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event,
                                                                      Integer ifNoneExist)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent instance.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        ifNoneExist - flag to tell the persistence layer to apply conditional create-on-update logic.
      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event,
                                                                      FHIRHistoryContext historyContext)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent and a FHIRHistoryContext.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        historyContext - the FHIRHistoryContext instance to be contained in the FHIRPersistenceContext instance
      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event,
                                                                      FHIRSearchContext searchContext)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent and a FHIRSearchContext.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        searchContext - the FHIRSearchContext instance to be contained in the FHIRPersistenceContext instance
      • createHistoryContext

        public static FHIRHistoryContext createHistoryContext()
        Returns a FHIRHistoryContext instance with default values.
      • createPersistenceContext

        public static FHIRPersistenceContext createPersistenceContext​(FHIRPersistenceEvent event,
                                                                      boolean includeDeleted,
                                                                      FHIRSearchContext searchContext)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent instance.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        includeDeleted - flag to tell the persistence layer to include deleted resources in the operation results
        searchContext - the FHIRSearchContext instance to be contained in the FHIRPersistenceContext instance