Project

General

Profile

Download (2.25 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.cdm.io.common.mapping;
11

    
12
import java.sql.ResultSet;
13
import java.sql.SQLException;
14

    
15
import org.apache.log4j.Logger;
16

    
17
import eu.etaxonomy.cdm.io.common.DbImportStateBase;
18
import eu.etaxonomy.cdm.model.description.CommonTaxonName;
19

    
20
/**
21
 * @author a.mueller
22
 * @since 11.03.2010
23
 * @version 1.0
24
 */
25
public class DbImportCommonNameCreationMapper<STATE extends DbImportStateBase<?,?>> extends DbImportDescriptionElementCreationMapperBase<CommonTaxonName, DbImportStateBase<?,?>> {
26
	@SuppressWarnings("unused")
27
	private static final Logger logger = Logger.getLogger(DbImportCommonNameCreationMapper.class);
28

    
29
//******************************** FACTORY METHOD ***************************************************/
30
	
31
	public static DbImportCommonNameCreationMapper<?> NewInstance(String dbIdAttribute, String objectToCreateNamespace, String dbTaxonFkAttribute, String taxonNamespace){
32
		return new DbImportCommonNameCreationMapper(dbIdAttribute, objectToCreateNamespace, dbTaxonFkAttribute, taxonNamespace);
33
	}
34
	
35
//******************************* ATTRIBUTES ***************************************/
36

    
37
	
38
//********************************* CONSTRUCTOR ****************************************/
39
	/**
40
	 * @param dbIdAttribute
41
	 * @param objectToCreateNamespace
42
	 * @param dbTaxonFkAttribute
43
	 * @param taxonNamespace
44
	 */
45
	protected DbImportCommonNameCreationMapper(String dbIdAttribute, String objectToCreateNamespace, String dbTaxonFkAttribute, String taxonNamespace) {
46
		super(dbIdAttribute, objectToCreateNamespace, dbTaxonFkAttribute, taxonNamespace);
47
	}
48

    
49
//************************************ METHODS *******************************************/
50

    
51
	/* (non-Javadoc)
52
	 * @see eu.etaxonomy.cdm.io.common.mapping.DbImportObjectCreationMapperBase#createObject(java.sql.ResultSet)
53
	 */
54
	@Override
55
	protected CommonTaxonName createObject(ResultSet rs) throws SQLException {
56
		CommonTaxonName commonName = CommonTaxonName.NewInstance(null, null);
57
		return commonName;
58
	}
59

    
60
}
(8-8/51)