Unifiy name and taxon creation
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / berlinModel / out / BerlinModelExportState.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.berlinModel.out;
12
13 import org.apache.log4j.Logger;
14
15 import eu.etaxonomy.cdm.io.common.DbExportStateBase;
16 import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer;
17
18 /**
19 * @author a.mueller
20 * @created 11.05.2009
21 * @version 1.0
22 */
23 public class BerlinModelExportState extends DbExportStateBase<BerlinModelExportConfigurator, IExportTransformer>{
24 @SuppressWarnings("unused")
25 private static final Logger logger = Logger.getLogger(BerlinModelExportState.class);
26
27
28
29 // /* (non-Javadoc)
30 // * @see eu.etaxonomy.cdm.io.common.IoStateBase#initialize(eu.etaxonomy.cdm.io.common.IIoConfigurator)
31 // */
32 // @Override
33 // public void initialize(BerlinModelExportConfigurator config) {
34 //
35 // }
36
37
38 public BerlinModelExportState(BerlinModelExportConfigurator config) {
39 super(config);
40 }
41
42
43 private Integer nextRefDetailId = null;
44 private Integer nextFactCategoryId = null;
45
46 /**
47 * @return the nextRefDetailId
48 */
49 public Integer getNextRefDetailId() {
50 if (nextRefDetailId == null){
51 //TODO
52 nextRefDetailId = 1;
53 }
54 return nextRefDetailId++;
55 }
56
57 /**
58 * @return the nextRefDetailId
59 */
60 public Integer getNextFactCategoryId() {
61 if (nextFactCategoryId == null){
62 //TODO
63 nextFactCategoryId = 30;
64 }
65 return nextFactCategoryId++;
66 }
67
68
69 /**
70 * @param nextRefDetailId the nextRefDetailId to set
71 */
72 public void setNextFactCategoryId(Integer nextFactCategoryId) {
73 this.nextFactCategoryId = nextFactCategoryId;
74 }
75
76 }