Class FHIRPersistenceContextFactory


  • public class FHIRPersistenceContextFactory
    extends java.lang.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,
                                                                      java.lang.Integer ifNoneMatch)
        Returns a FHIRPersistenceContext that contains a FHIRPersistenceEvent instance.
        Parameters:
        event - the FHIRPersistenceEvent instance to be contained in the FHIRPersistenceContext instance
        ifNoneMatch - 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,
                                                                      java.lang.String requestShard)
        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
        requestShard - the requested shard; can be null
      • createHistoryContext

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