public abstract class AbstractCSVImporter extends Object implements ICsvImporter
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Set<String>> |
domainCodeCampaignCropCode |
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Set<String>> |
domainCodeCampaignTCCode |
protected static Map<String,EffectiveCropCycleAndDependencies> |
effectiveCropCycleAndDependenciesByZone |
protected Long |
FIRST_LINE_NUMBER |
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,String> |
pz0CodeToAgrosystCode |
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> |
pz0CodeToObject |
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> |
pz0IdToObject |
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> |
pz0IdToRelatedObjectId |
protected ServiceContext |
serviceContext |
protected ServiceFactory |
serviceFactory |
| Constructor and Description |
|---|
AbstractCSVImporter() |
| Modifier and Type | Method and Description |
|---|---|
String |
csvCodeToAgrosystCode(Class _class,
String csvCode)
Convert csv code to Agrosyst code format.
|
protected DomainAndDependencies |
getDomainAndDependenciesForZone(String zoneId)
Add DomainDependencies to cycle, will be useful to valid crop and species later on
|
protected EffectiveCropCycleAndDependencies |
getEffectiveCropCycleAndDependencies(String zoneId) |
static Map<String,EffectiveCropCycleAndDependencies> |
getEffectiveCropCycleAndDependenciesByZone() |
AgrosystTopiaPersistenceContext |
getPersistenceContext() |
static PlotAndDependencies |
getPlotAndDependenciesForZone(String zoneId) |
ServiceFactory |
getServiceFactory() |
SolWaterPh |
getSolWaterPh(String value)
Try to get SolWaterPh value from String value.
|
void |
init(ServiceContext serviceContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitimportFromStreamprotected ServiceContext serviceContext
protected ServiceFactory serviceFactory
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,String> pz0CodeToAgrosystCode
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> pz0IdToObject
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> pz0CodeToObject
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Object> pz0IdToRelatedObjectId
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Set<String>> domainCodeCampaignTCCode
protected static org.apache.commons.collections4.map.MultiKeyMap<Object,Set<String>> domainCodeCampaignCropCode
protected static Map<String,EffectiveCropCycleAndDependencies> effectiveCropCycleAndDependenciesByZone
protected final Long FIRST_LINE_NUMBER
public AgrosystTopiaPersistenceContext getPersistenceContext()
public ServiceFactory getServiceFactory()
public void init(ServiceContext serviceContext)
init in interface ICsvImporterpublic String csvCodeToAgrosystCode(Class _class, String csvCode)
_class - the class of the targeted codecsvCode - the csv codepublic SolWaterPh getSolWaterPh(String value)
value - String value for SolWaterPh, value may be the name of SolWaterPh's Enum value ou a numeric value.
Value must not be nullprotected EffectiveCropCycleAndDependencies getEffectiveCropCycleAndDependencies(String zoneId)
protected DomainAndDependencies getDomainAndDependenciesForZone(String zoneId)
zoneId - zone Idpublic static Map<String,EffectiveCropCycleAndDependencies> getEffectiveCropCycleAndDependenciesByZone()
public static PlotAndDependencies getPlotAndDependenciesForZone(String zoneId)
Copyright © 2013–2015 Inra. All rights reserved.