Class CustomMetadataDataMapper
- java.lang.Object
-
- dev.pcvolkmer.mv64e.datamapper.mapper.CustomMetadataDataMapper
-
- All Implemented Interfaces:
DataMapper<CustomMetadata>
public class CustomMetadataDataMapper extends java.lang.Object implements DataMapper<CustomMetadata>
Mapper class to load and map custom metadata from database- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description CustomMetadataDataMapper(KpaCatalogue kpaCatalogue, PatientCatalogue patientCatalogue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomMetadatagetByCaseId(java.lang.String caseId)Loads and maps using the case idCustomMetadatagetById(int id)Loads a data set from database and maps it into destination data typeCustomMetadatagetLatestByPatientIdAndTumorId(java.lang.String patientId, int tumorId)Loads and maps using the patient id and tumor id
-
-
-
Constructor Detail
-
CustomMetadataDataMapper
public CustomMetadataDataMapper(KpaCatalogue kpaCatalogue, PatientCatalogue patientCatalogue)
-
-
Method Detail
-
getById
public CustomMetadata getById(int id)
Description copied from interface:DataMapperLoads a data set from database and maps it into destination data type- Specified by:
getByIdin interfaceDataMapper<CustomMetadata>- Parameters:
id- The database id of the root procedure data set- Returns:
- The data set to be loaded
-
getByCaseId
public CustomMetadata getByCaseId(java.lang.String caseId)
Loads and maps using the case id- Parameters:
caseId- The case id- Returns:
- The loaded Mtb file
-
getLatestByPatientIdAndTumorId
public CustomMetadata getLatestByPatientIdAndTumorId(java.lang.String patientId, int tumorId)
Loads and maps using the patient id and tumor id- Parameters:
patientId- The patients id (not database id)tumorId- The tumor identification- Returns:
- The loaded Mtb file
-
-