Refactoring for Imports
[cdmlib.git] / cdmlib-io / 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.DbExportState;
16
17 /**
18 * @author a.mueller
19 * @created 11.05.2009
20 * @version 1.0
21 */
22 public class BerlinModelExportState<CONFIG extends BerlinModelExportConfigurator> extends DbExportState<CONFIG>{
23 @SuppressWarnings("unused")
24 private static final Logger logger = Logger.getLogger(BerlinModelExportState.class);
25
26 private Integer nextRefDetailId = null;
27 private Integer nextFactCategoryId = null;
28
29 /**
30 * @return the nextRefDetailId
31 */
32 public Integer getNextRefDetailId() {
33 if (nextRefDetailId == null){
34 //TODO
35 nextRefDetailId = 1;
36 }
37 return nextRefDetailId++;
38 }
39
40 /**
41 * @return the nextRefDetailId
42 */
43 public Integer getNextFactCategoryId() {
44 if (nextFactCategoryId == null){
45 //TODO
46 nextFactCategoryId = 30;
47 }
48 return nextFactCategoryId++;
49 }
50
51
52 /**
53 * @param nextRefDetailId the nextRefDetailId to set
54 */
55 public void setNextFactCategoryId(Integer nextFactCategoryId) {
56 this.nextFactCategoryId = nextFactCategoryId;
57 }
58
59 }