3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.cdm
.io
.berlinModel
.out
.mapper
;
13 import java
.sql
.PreparedStatement
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.io
.berlinModel
.out
.BerlinModelExportState
;
18 import eu
.etaxonomy
.cdm
.io
.berlinModel
.out
.DbExportState
;
30 public class DbExportMapperBase
<STATE
extends DbExportState
<?
>> /*implements IDbExportMapper */{
31 @SuppressWarnings("unused")
32 private static final Logger logger
= Logger
.getLogger(DbExportMapperBase
.class);
34 protected PreparedStatement preparedStatement
= null;
35 protected int index
= 0;
37 private String tableName
;
43 * @see eu.etaxonomy.cdm.io.berlinModel.out.mapper.IDbExportMapper#initialize(java.sql.PreparedStatement, int)
45 public void initialize(PreparedStatement stmt
, IndexCounter index
, STATE state
, String tableName
) {
46 this.preparedStatement
= stmt
;
47 this.index
= index
.getIncreasing();
49 this.tableName
= tableName
;
54 * @return the preparedStatement
56 public PreparedStatement
getPreparedStatement() {
57 return preparedStatement
;
63 public int getIndex() {
71 public STATE
getState() {
77 * @return the tableName
79 public String
getTableName() {
85 * @param tableName the tableName to set
87 public void setTableName(String tableName
) {
88 this.tableName
= tableName
;