Project

General

Profile

Download (1.85 KB) Statistics
| Branch: | Tag: | Revision:
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.berlinModel.out.mapper;
12

    
13
import java.sql.PreparedStatement;
14

    
15
import org.apache.log4j.Logger;
16

    
17
import eu.etaxonomy.cdm.io.common.DbExportStateBase;
18

    
19
/**
20
 * @author a.mueller
21
 * @created 12.05.2009
22
 * @version 1.0
23
 */
24
/**
25
 * @author a.mueller
26
 * @created 12.05.2009
27
 * @version 1.0
28
 */
29
public class DbExportMapperBase<STATE extends DbExportStateBase<?>>  /*implements IDbExportMapper */{
30
	@SuppressWarnings("unused")
31
	private static final Logger logger = Logger.getLogger(DbExportMapperBase.class);
32

    
33
	protected PreparedStatement preparedStatement = null;
34
	protected int index = 0;
35
	private STATE state;
36
	private String tableName;
37
	
38

    
39

    
40

    
41
	/* (non-Javadoc)
42
	 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.IDbExportMapper#initialize(java.sql.PreparedStatement, int)
43
	 */
44
	public void initialize(PreparedStatement stmt, IndexCounter index, STATE state, String tableName) {
45
		this.preparedStatement = stmt;
46
		this.index = index.getIncreasing();
47
		this.state = state;
48
		this.tableName = tableName;
49
	}
50

    
51

    
52
	/**
53
	 * @return the preparedStatement
54
	 */
55
	public PreparedStatement getPreparedStatement() {
56
		return preparedStatement;
57
	}
58
	
59
	/**
60
	 * @return the index
61
	 */
62
	public int getIndex() {
63
		return index;
64
	}
65

    
66

    
67
	/**
68
	 * @return the state
69
	 */
70
	public STATE getState() {
71
		return state;
72
	}
73

    
74

    
75
	/**
76
	 * @return the tableName
77
	 */
78
	public String getTableName() {
79
		return tableName;
80
	}
81

    
82

    
83
	/**
84
	 * @param tableName the tableName to set
85
	 */
86
	public void setTableName(String tableName) {
87
		this.tableName = tableName;
88
	}
89
}
(6-6/23)