public class ToolsCouplingImporter extends AbstractCSVImporter
agrosystCodeToPz0Code, domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
ToolsCouplingImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addToolCouplingWorkRateUnit(ImportResults importResults,
ToolCouplingImportDto dto,
ToolsCoupling toolsCoupling,
long line,
boolean error) |
protected boolean |
excludeToolCouplingDuplicate(ImportResults importResults,
String toolCouplingId,
long line)
Return true if the toolCoupling csvId is already known *
|
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> entitiesByCsvId) |
protected void |
stockToolsCouplingCodeForDomainAndCampain(ToolCouplingImportDto toolsCoupling,
DomainAndDependencies domainAndDependencies) |
protected boolean |
validToolCouplingToDomain(ImportResults importResults,
Map<String,EntityAndDependencies> entitiesByCsvId,
ToolCouplingImportDto dto,
ToolsCoupling toolsCoupling,
long line,
boolean error) |
protected boolean |
validTractor(ImportResults importResults,
ToolCouplingImportDto dto,
ToolsCoupling toolsCoupling,
long line,
boolean error) |
csvCodeToAgrosystCode, getDatePatternForInput, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, getSpeciesStadeCodes, initpublic ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected void stockToolsCouplingCodeForDomainAndCampain(ToolCouplingImportDto toolsCoupling, DomainAndDependencies domainAndDependencies)
protected boolean validToolCouplingToDomain(ImportResults importResults, Map<String,EntityAndDependencies> entitiesByCsvId, ToolCouplingImportDto dto, ToolsCoupling toolsCoupling, long line, boolean error)
protected boolean validTractor(ImportResults importResults, ToolCouplingImportDto dto, ToolsCoupling toolsCoupling, long line, boolean error)
protected boolean addToolCouplingWorkRateUnit(ImportResults importResults, ToolCouplingImportDto dto, ToolsCoupling toolsCoupling, long line, boolean error)
protected boolean excludeToolCouplingDuplicate(ImportResults importResults, String toolCouplingId, long line)
Copyright © 2013–2015 Inra. All rights reserved.