some generics
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / common / mapping / DbImportMapperBase.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.cdm.io.common.mapping;
12
13 import org.apache.log4j.Logger;
14
15 import eu.etaxonomy.cdm.io.common.DbImportStateBase;
16 import eu.etaxonomy.cdm.model.common.CdmBase;
17
18 /**
19 * @author a.mueller
20 * @created 12.05.2009
21 * @version 1.0
22 */
23 /**
24 * @author a.mueller
25 * @created 12.05.2009
26 * @version 1.0
27 */
28 public class DbImportMapperBase<STATE extends DbImportStateBase<?,?>> {
29 @SuppressWarnings("unused")
30 private static final Logger logger = Logger.getLogger(DbImportMapperBase.class);
31
32 private STATE state;
33 private String tableName;
34 private Class<? extends CdmBase> cdmClass;
35
36
37 /**
38 * @param state
39 * @param tableName
40 */
41 public void initialize(STATE state, Class<? extends CdmBase> cdmClass) {
42 this.state = state;
43 this.tableName = tableName;
44 this.cdmClass = cdmClass;
45 }
46
47 /**
48 * @return the state
49 */
50 public STATE getState() {
51 return state;
52 }
53
54 /**
55 * @return the tableName
56 */
57 public String getTableName() {
58 return tableName;
59 }
60
61 /**
62 * @param tableName the tableName to set
63 */
64 public void setTableName(String tableName) {
65 this.tableName = tableName;
66 }
67
68 /**
69 * @param cdmClass the cdmClass to set
70 */
71 public void setCdmClass(Class<? extends CdmBase> cdmClass) {
72 this.cdmClass = cdmClass;
73 }
74
75 /**
76 * @return the cdmClass
77 */
78 public Class<? extends CdmBase> getCdmClass() {
79 return cdmClass;
80 }
81 }