Class MetadataEntryRepositoryImpl
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.repositories.sample.MetadataEntryRepositoryImpl
-
- All Implemented Interfaces:
MetadataEntryRepositoryCustom
public class MetadataEntryRepositoryImpl extends java.lang.Object implements MetadataEntryRepositoryCustom
Implementation of the custom methods for retrievingMetadataEntry
-
-
Constructor Summary
Constructors Constructor Description MetadataEntryRepositoryImpl(javax.sql.DataSource dataSource, javax.persistence.EntityManager entityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Long,java.util.Set<MetadataEntry>>
getMetadataForProjectSamples(Project project, java.util.List<java.lang.Long> sampleIds, java.util.List<MetadataTemplateField> requestedFields)
Get all theMetadataEntry
for a set of samples in a given project.
-
-
-
Method Detail
-
getMetadataForProjectSamples
public java.util.Map<java.lang.Long,java.util.Set<MetadataEntry>> getMetadataForProjectSamples(Project project, java.util.List<java.lang.Long> sampleIds, java.util.List<MetadataTemplateField> requestedFields)
Get all theMetadataEntry
for a set of samples in a given project. This will return a Map of the Sample IDs associated with a Set ofMetadataEntry
- Specified by:
getMetadataForProjectSamples
in interfaceMetadataEntryRepositoryCustom
- Parameters:
project
- theProject
to get metadata forsampleIds
- theSample
ids to get metadata forrequestedFields
- the fields to get metadata from in the project. This must not be empty.- Returns:
- The Map of the Project's metadata
-
-