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 java.sql.ResultSet;
|
13
|
import java.sql.SQLException;
|
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
|
public interface IDbImportMapper<STATE extends DbImportStateBase<?,?>, CDM_BASE extends CdmBase> {
|
24
|
|
25
|
public void initialize(STATE state, Class<? extends CdmBase> destinationClass);
|
26
|
|
27
|
// public void initialize(T state, String tableName);
|
28
|
|
29
|
public CDM_BASE invoke(ResultSet rs, CDM_BASE cdmBase) throws SQLException;
|
30
|
|
31
|
}
|