cleanup
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / common / mapping / IDbImportMapper.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 java.sql.ResultSet;
14 import java.sql.SQLException;
15
16 import eu.etaxonomy.cdm.io.common.DbImportStateBase;
17 import eu.etaxonomy.cdm.model.common.CdmBase;
18
19 /**
20 * @author a.mueller
21 * @created 12.05.2009
22 * @version 1.0
23 */
24 public interface IDbImportMapper<STATE extends DbImportStateBase<?,?>, CDM_BASE extends CdmBase> {
25
26 public void initialize(STATE state, Class<? extends CdmBase> destinationClass);
27
28 // public void initialize(T state, String tableName);
29
30 public CDM_BASE invoke(ResultSet rs, CDM_BASE cdmBase) throws SQLException;
31
32 }