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
.common
;
13 import java
.util
.HashMap
;
15 import java
.util
.UUID
;
17 import org
.apache
.log4j
.Logger
;
19 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
26 public abstract class DbExportStateBase
<CONFIG
extends DbExportConfiguratorBase
> extends ExportStateBase
<CONFIG
> {
27 private static final Logger logger
= Logger
.getLogger(DbExportStateBase
.class);
29 protected Map
<UUID
, Integer
> dbIdMap
= new HashMap
<UUID
, Integer
>();
32 public DbExportStateBase(CONFIG config
) {
36 public void putDbId(CdmBase cdmBase
, int dbId
){
38 dbIdMap
.put(cdmBase
.getUuid(), dbId
);
40 logger
.warn("CdmBase was (null) and could not be added to dbIdMap");
44 public Integer
getDbId(CdmBase cdmBase
){
46 return dbIdMap
.get(cdmBase
.getUuid());
48 logger
.warn("CdmBase was (null). No entries in dbIdMap available");