Project

General

Profile

« Previous | Next » 

Revision 60ad1ed0

Added by Andreas Müller almost 10 years ago

latest changes to AT

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/algaterra/AlgaTerraEcoFactImport.java
71 71
		super(dbTableName, pluralString);
72 72
	}
73 73
	
74
	
75
	
76
	/* (non-Javadoc)
77
	 * @see eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportBase#getIdQuery()
78
	 */
79 74
	@Override
80 75
	protected String getIdQuery(BerlinModelImportState state) {
81 76
		String result = " SELECT EcoFactId " + 
......
84 79
		return result;
85 80
	}
86 81

  
87
	/* (non-Javadoc)
88
	 * @see eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportBase#getRecordQuery(eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportConfigurator)
89
	 */
90 82
	@Override
91 83
	protected String getRecordQuery(BerlinModelImportConfigurator config) {
92 84
			String strQuery =   
93 85
            " SELECT EcoFact.*, EcoFact.EcoFactId as unitId, " + 
94
               " tg.ID AS GazetteerId, tg.L2Code, tg.L3Code, tg.L4Code, tg.Country, tg.ISOCountry, " +
86
               " tg.ID AS GazetteerId, tg.L1Code, tg.L2Code, tg.L3Code, tg.L4Code, tg.Country, tg.ISOCountry, tg.subL4, " +
95 87
               " ec.UUID as climateUuid, eh.UUID as habitatUuid, elf.UUID as lifeFormUuid " +
96 88
            " FROM EcoFact " +
97 89
                 " LEFT OUTER JOIN TDWGGazetteer tg ON EcoFact.TDWGGazetteerFk = tg.ID " +
......
104 96
		return strQuery;
105 97
	}
106 98

  
107
	/* (non-Javadoc)
108
	 * @see eu.etaxonomy.cdm.io.berlinModel.in.IPartitionedIO#doPartition(eu.etaxonomy.cdm.io.berlinModel.in.ResultSetPartitioner, eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportState)
109
	 */
99
	@Override
110 100
	public boolean doPartition(ResultSetPartitioner partitioner, BerlinModelImportState bmState) {
111 101
		boolean success = true;
112 102
		
......
262 252
	}
263 253

  
264 254

  
265

  
266

  
267

  
268 255
	private void addCategoricalValue(AlgaTerraImportState importState, DescriptionBase description, String uuidTerm, UUID featureUuid) {
269 256
		if (uuidTerm != null){
270 257
			State state = this.getStateTerm(importState, UUID.fromString(uuidTerm));

Also available in: Unified diff