Revision cdda449c
Added by Andreas Müller almost 2 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmImportBase.java | ||
---|---|---|
976 | 976 |
* If cdmBase is not sourceable nothing happens. |
977 | 977 |
* TODO Move to DbImportBase once this exists. |
978 | 978 |
* TODO also implemented in DbImportObjectCreationMapper (reduce redundance) |
979 |
* @param rs |
|
980 |
* @param cdmBase |
|
981 |
* @param dbIdAttribute |
|
982 |
* @param namespace |
|
983 |
* @param citation |
|
984 |
* @throws SQLException |
|
985 | 979 |
*/ |
986 | 980 |
public OriginalSourceBase addOriginalSource(ICdmBase cdmBase, Object idAttributeValue, String namespace, Reference citation) { |
987 | 981 |
if (cdmBase instanceof ISourceable ){ |
... | ... | |
1009 | 1003 |
return null; |
1010 | 1004 |
} |
1011 | 1005 |
|
1012 |
/** |
|
1013 |
* @see #addOriginalSource(CdmBase, Object, String, Reference) |
|
1014 |
* @param rs |
|
1015 |
* @param cdmBase |
|
1016 |
* @param dbIdAttribute |
|
1017 |
* @param namespace |
|
1018 |
* @param citation |
|
1019 |
* @throws SQLException |
|
1020 |
*/ |
|
1021 | 1006 |
public void addOriginalSource(ResultSet rs, CdmBase cdmBase, String dbIdAttribute, String namespace, Reference citation) throws SQLException { |
1022 | 1007 |
Object id = rs.getObject(dbIdAttribute); |
1023 | 1008 |
addOriginalSource(cdmBase, id, namespace, citation); |
1024 | 1009 |
} |
1025 | 1010 |
|
1026 |
|
|
1027 | 1011 |
/** |
1028 | 1012 |
* If the child taxon is missing genus or species epithet information and the rank is below <i>genus</i> |
1029 | 1013 |
* or <i>species</i> respectively the according epithets are taken from the parent taxon. |
Also available in: Unified diff
cleanup