1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.io.berlinModel.out;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
|
14
|
import eu.etaxonomy.cdm.io.common.DbExportStateBase;
|
15
|
import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer;
|
16
|
|
17
|
/**
|
18
|
* @author a.mueller
|
19
|
* @since 11.05.2009
|
20
|
*/
|
21
|
public class BerlinModelExportState extends DbExportStateBase<BerlinModelExportConfigurator, IExportTransformer>{
|
22
|
|
23
|
@SuppressWarnings("unused")
|
24
|
private static final Logger logger = Logger.getLogger(BerlinModelExportState.class);
|
25
|
|
26
|
|
27
|
public BerlinModelExportState(BerlinModelExportConfigurator config) {
|
28
|
super(config);
|
29
|
}
|
30
|
|
31
|
|
32
|
private Integer nextRefDetailId = null;
|
33
|
private Integer nextFactCategoryId = null;
|
34
|
|
35
|
/**
|
36
|
* @return the nextRefDetailId
|
37
|
*/
|
38
|
public Integer getNextRefDetailId() {
|
39
|
if (nextRefDetailId == null){
|
40
|
//TODO
|
41
|
nextRefDetailId = 1;
|
42
|
}
|
43
|
return nextRefDetailId++;
|
44
|
}
|
45
|
|
46
|
/**
|
47
|
* @return the nextRefDetailId
|
48
|
*/
|
49
|
public Integer getNextFactCategoryId() {
|
50
|
if (nextFactCategoryId == null){
|
51
|
//TODO
|
52
|
nextFactCategoryId = 30;
|
53
|
}
|
54
|
return nextFactCategoryId++;
|
55
|
}
|
56
|
|
57
|
|
58
|
/**
|
59
|
* @param nextRefDetailId the nextRefDetailId to set
|
60
|
*/
|
61
|
public void setNextFactCategoryId(Integer nextFactCategoryId) {
|
62
|
this.nextFactCategoryId = nextFactCategoryId;
|
63
|
}
|
64
|
|
65
|
}
|