Revision 4a3dd8c5
Added by Andreas Müller over 12 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/out/CdmDbExportMapping.java | ||
---|---|---|
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
public boolean initialize(STATE state) throws SQLException{ |
45 |
CONFIG bmeConfig = state.getConfig();
|
|
46 |
Source db = bmeConfig.getDestination();
|
|
45 |
CONFIG config = state.getConfig();
|
|
46 |
Source db = config.getDestination();
|
|
47 | 47 |
|
48 | 48 |
try { |
49 | 49 |
IndexCounter index; |
... | ... | |
57 | 57 |
IDbExportMapper<DbExportStateBase<?>> dbMapper = (IDbExportMapper)mapper; |
58 | 58 |
dbMapper.initialize(preparedStatement, index, state, dbTableName); |
59 | 59 |
}else{ |
60 |
logger.warn("mapper is not of type " + IDbExportMapper.class.getSimpleName()); |
|
60 |
logger.warn("mapper "+mapper.toString() + "," + mapper.getClass().getName() +" is not of type " + IDbExportMapper.class.getSimpleName());
|
|
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
for (CollectionExportMapping<STATE,CONFIG> collectionMapping : this.collectionMappingList ){ |
Also available in: Unified diff
Latest changes for PESI export and introduce transformers in export mappings