Project

General

Profile

« Previous | Next » 

Revision bd9b07e3

Added by Andreas Müller over 4 years ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/DbImportConfiguratorBase.java
27 27
            extends ImportConfiguratorBase<STATE, Source> {
28 28

  
29 29
    private static final long serialVersionUID = 3474072167155099394L;
30
	private static Logger logger = Logger.getLogger(DbImportConfiguratorBase.class);
30
	@SuppressWarnings("unused")
31
    private static Logger logger = Logger.getLogger(DbImportConfiguratorBase.class);
31 32

  
32 33
	private Method userTransformationMethod;
33 34

  
34 35
	/* Max number of records to be saved with one service call */
35 36
	private int recordsPerTransaction = 1000;
36 37

  
37
	/**
38
	 * @param source
39
	 * @param destination
40
	 * @param code
41
	 */
42 38
	protected DbImportConfiguratorBase(Source source, ICdmDataSource destination, NomenclaturalCode code, IInputTransformer defaultTransformer) {
43 39
	   super(defaultTransformer);
44 40
	   setNomenclaturalCode(code);
......
46 42
	   setDestination(destination);
47 43
	}
48 44

  
49

  
50 45
	@Override
51 46
    public Source getSource() {
52 47
		return super.getSource();
......
56 51
		super.setSource(berlinModelSource);
57 52
	}
58 53

  
59

  
60 54
	@Override
61 55
    public Reference getSourceReference() {
62 56
		if (sourceReference == null){
......
80 74
		}
81 75
	}
82 76

  
83

  
84 77
	public int getRecordsPerTransaction() {
85 78
		return recordsPerTransaction;
86 79
	}
......
88 81
		this.recordsPerTransaction = recordsPerTransaction;
89 82
	}
90 83

  
91

  
92 84
	public Method getUserTransformationMethod() {
93 85
		return userTransformationMethod;
94 86
	}
95 87
	public void setUserTransformationMethod(Method userTransformationMethod) {
96 88
		this.userTransformationMethod = userTransformationMethod;
97 89
	}
98

  
99

  
100 90
}

Also available in: Unified diff