public class EffectiveInterventionImporter extends AbstractCSVImporter
agrosystCodeToPz0Code, domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
EffectiveInterventionImporter() |
csvCodeToAgrosystCode, getDatePatternForInput, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, getSpeciesStadeCodes, initpublic ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected void createEffectiveInterventionSpeciesStades(Pz0EffectiveIntervention pz0EffectiveIntervention)
protected boolean validPhaseOrNodeFields(ImportResults importResults, long line, EffectiveInterventionImportDto from, boolean error)
protected boolean validPhase(ImportResults importResults, long line, EffectiveInterventionImportDto from, Pz0EffectiveIntervention pz0EffectiveIntervention, boolean error)
protected boolean validNode(ImportResults importResults, long line, EffectiveInterventionImportDto from, Pz0EffectiveIntervention pz0EffectiveIntervention, boolean error)
protected boolean addInterventionToPhaseOrNode(ImportResults importResults, long line, EffectiveInterventionImportDto from, Pz0EffectiveIntervention pz0Intervention, boolean error)
protected void addTargetedCropIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCycleNode pz0Node, Pz0EffectiveCropCyclePhase pz0Phase)
protected void addTargetedCropIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCycleNode pz0Node)
protected void addTargetedCropIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCyclePhase pz0Phase)
protected void addTargetedZoneIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCycleNode pz0Node, Pz0EffectiveCropCyclePhase pz0Phase)
protected void addTargetedZoneIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCycleNode pz0Node)
protected void addTargetedZoneIdToIntervention(Pz0EffectiveIntervention to, Pz0EffectiveCropCyclePhase pz0Phase)
protected boolean validType(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
protected boolean validName(ImportResults importResults, long line, EffectiveInterventionDto to, boolean error)
protected boolean validStartInterventionDate(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
protected boolean validEndInterventionDate(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
protected boolean validTransitCount(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
protected boolean validTransitVolumeUnit(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
protected boolean validWorkRateUnit(ImportResults importResults, long line, EffectiveInterventionImportDto from, EffectiveInterventionDto to, boolean error)
Copyright © 2013–2015 Inra. All rights reserved.