Project

General

Profile

Download (1.63 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 org.apache.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
 * @created 12.05.2009
20
 * @version 1.0
21
 */
22
/**
23
 * @author a.mueller
24
 * @created 12.05.2009
25
 * @version 1.0
26
 */
27
public class DbImportMapperBase<STATE extends DbImportStateBase<?,?>>  {
28
	@SuppressWarnings("unused")
29
	private static final Logger logger = Logger.getLogger(DbImportMapperBase.class);
30

    
31
	private STATE state;
32
	private String tableName;
33
	private Class<? extends CdmBase> cdmClass;
34

    
35

    
36
	/**
37
	 * @param state
38
	 * @param tableName
39
	 */
40
	public void initialize(STATE state, Class<? extends CdmBase> cdmClass) {
41
		this.state = state;
42
		this.cdmClass = cdmClass;
43
	}
44

    
45
	/**
46
	 * @return the state
47
	 */
48
	public STATE getState() {
49
		return state;
50
	}
51

    
52
	/**
53
	 * @return the tableName
54
	 */
55
	public String getTableName() {
56
		return tableName;
57
	}
58

    
59
	/**
60
	 * @param tableName the tableName to set
61
	 */
62
	public void setTableName(String tableName) {
63
		this.tableName = tableName;
64
	}
65

    
66
	/**
67
	 * @param cdmClass the cdmClass to set
68
	 */
69
	public void setCdmClass(Class<? extends CdmBase> cdmClass) {
70
		this.cdmClass = cdmClass;
71
	}
72

    
73
	/**
74
	 * @return the cdmClass
75
	 */
76
	public Class<? extends CdmBase> getCdmClass() {
77
		return cdmClass;
78
	}
79
}
(20-20/51)