Class FetchPayloadsForIdsDAO
- java.lang.Object
 - 
- com.ibm.fhir.persistence.jdbc.dao.impl.FetchPayloadsForIdsDAO
 
 
- 
public class FetchPayloadsForIdsDAO extends Object
DAO to fetch the payload objects for a list of resource ids 
- 
- 
Constructor Summary
Constructors Constructor Description FetchPayloadsForIdsDAO(String schemaName, String resourceType, List<Long> resourceIds, Consumer<ResourcePayload> consumer)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(Connection c)Fetch the payloads using the given connection 
 - 
 
- 
- 
Constructor Detail
- 
FetchPayloadsForIdsDAO
public FetchPayloadsForIdsDAO(String schemaName, String resourceType, List<Long> resourceIds, Consumer<ResourcePayload> consumer)
Public constructor- Parameters:
 schemaName- the FHIR data schemathe- resource type nameresourceIds- the list of database resource_id valuesconsumer- 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 FHIRPersistenceException
Fetch the payloads using the given connection- Parameters:
 c-- Throws:
 FHIRPersistenceException
 
 - 
 
 -