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 org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
|
13
|
|
14
|
import eu.etaxonomy.cdm.io.common.DbImportStateBase;
|
15
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
16
|
|
17
|
/**
|
18
|
* @author a.mueller
|
19
|
* @since 12.05.2009
|
20
|
*/
|
21
|
public class DbImportMapperBase<STATE extends DbImportStateBase<?,?>> {
|
22
|
@SuppressWarnings("unused")
|
23
|
private static final Logger logger = LogManager.getLogger(DbImportMapperBase.class);
|
24
|
|
25
|
private STATE state;
|
26
|
private String tableName;
|
27
|
private Class<? extends CdmBase> cdmClass;
|
28
|
|
29
|
public void initialize(STATE state, Class<? extends CdmBase> cdmClass) {
|
30
|
this.state = state;
|
31
|
this.cdmClass = cdmClass;
|
32
|
}
|
33
|
|
34
|
public STATE getState() {
|
35
|
return state;
|
36
|
}
|
37
|
|
38
|
public String getTableName() {
|
39
|
return tableName;
|
40
|
}
|
41
|
public void setTableName(String tableName) {
|
42
|
this.tableName = tableName;
|
43
|
}
|
44
|
|
45
|
public Class<? extends CdmBase> getCdmClass() {
|
46
|
return cdmClass;
|
47
|
}
|
48
|
public void setCdmClass(Class<? extends CdmBase> cdmClass) {
|
49
|
this.cdmClass = cdmClass;
|
50
|
}
|
51
|
}
|