View Javadoc

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