Class FetchPayloadsForIdsDAO


  • public class FetchPayloadsForIdsDAO
    extends Object
    DAO to fetch the payload objects for a list of resource ids
    • Constructor Detail

      • FetchPayloadsForIdsDAO

        public FetchPayloadsForIdsDAO​(String schemaName,
                                      String resourceType,
                                      List<Long> resourceIds,
                                      Consumer<com.ibm.fhir.persistence.ResourcePayload> consumer)
        Public constructor
        Parameters:
        schemaName - the FHIR data schema
        the - resource type name
        resourceIds - the list of database resource_id values
        consumer - the consumer to process each result. The stream must be processed before returning from the accept method
    • Method Detail

      • run

        public void run​(Connection c)
                 throws com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Fetch the payloads using the given connection
        Parameters:
        c -
        Throws:
        com.ibm.fhir.persistence.exception.FHIRPersistenceException