Project

General

Profile

« Previous | Next » 

Revision 70a5e0c4

Added by Andreas Müller over 9 years ago

new DbImportBase and DbImportConfigurator

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/RoteListeDbImportConfigurator.java
64 64
	   super(source, destination, NomenclaturalCode.ICBN, defaultTransformer);
65 65
	}
66 66
	
67
	
68
	public Source getSource() {
69
		return (Source)super.getSource();
70
	}
71
	public void setSource(Source berlinModelSource) {
72
		super.setSource(berlinModelSource);
73
	}
74 67

  
75
	/* (non-Javadoc)
76
	 * @see eu.etaxonomy.cdm.io.tcsrdf.IImportConfigurator#getSourceReference()
77
	 */
78
	public Reference getSourceReference() {
79
		if (sourceReference == null){
80
			sourceReference =  ReferenceFactory.newDatabase();
81
			if (getSource() != null){
82
				sourceReference.setTitleCache(getSource().getDatabase(), true);
83
			}
84
		}
85
		return sourceReference;
86
	}
87
	
88
	/* (non-Javadoc)
89
	 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getSourceNameString()
90
	 */
91
	public String getSourceNameString() {
92
		if (this.getSource() == null){
93
			return null;
94
		}else{
95
			return this.getSource().getDatabase();
96
		}
97
	}
98
	
99 68
	/**
100 69
	 * @return the limitSave
101 70
	 */

Also available in: Unified diff