public class PracticedCropCycleConnectionImporter extends AbstractCSVImporter
domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
PracticedCropCycleConnectionImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConnectionToCycle(PracticedCropCycleConnectionImportDto dto,
Pz0PracticedCropCycleConnection pz0Connection) |
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> entitiesByCsvId) |
protected PracticedCropCycleNodeDto |
setSourceAndTargetToConnection(PracticedCropCycleConnectionImportDto dto,
PracticedCropCycleConnectionDto connectionDto) |
protected boolean |
validIntermediateCrop(ImportResults importResults,
long line,
PracticedCropCycleConnectionImportDto connectionImportDto,
PracticedCropCycleConnectionDto connectionDto,
boolean error) |
protected boolean |
validSource(ImportResults importResults,
long line,
PracticedCropCycleConnectionImportDto connectionImportDto,
boolean error) |
protected boolean |
validTarget(ImportResults importResults,
long line,
PracticedCropCycleConnectionImportDto connectionImportDto,
boolean error) |
csvCodeToAgrosystCode, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, initpublic PracticedCropCycleConnectionImporter()
public ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected boolean validSource(ImportResults importResults, long line, PracticedCropCycleConnectionImportDto connectionImportDto, boolean error)
protected boolean validTarget(ImportResults importResults, long line, PracticedCropCycleConnectionImportDto connectionImportDto, boolean error)
protected void addConnectionToCycle(PracticedCropCycleConnectionImportDto dto, Pz0PracticedCropCycleConnection pz0Connection)
protected PracticedCropCycleNodeDto setSourceAndTargetToConnection(PracticedCropCycleConnectionImportDto dto, PracticedCropCycleConnectionDto connectionDto)
protected boolean validIntermediateCrop(ImportResults importResults, long line, PracticedCropCycleConnectionImportDto connectionImportDto, PracticedCropCycleConnectionDto connectionDto, boolean error)
Copyright © 2013–2015 Inra. All rights reserved.