Revision b36706c7
Added by Andreas Müller over 3 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/reference/IOriginalSourceDao.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.persistence.dao.reference; |
11 | 10 |
|
12 | 11 |
import java.util.List; |
... | ... | |
20 | 19 |
|
21 | 20 |
public interface IOriginalSourceDao extends ICdmEntityDao<OriginalSourceBase>{ |
22 | 21 |
|
23 |
|
|
24 | 22 |
/** |
25 | 23 |
* Returns a map of identifiable entities of class <code>clazz</code> which have an original source of |
26 | 24 |
* with namespace <code>idNamespace</code> and with an idInSource in <code>idInSourceList</code> <BR> |
27 | 25 |
* The key of the map is the idInSource. If there are multiple objects that have the same id an arbitrary one is chosen. |
28 |
* @param clazz |
|
29 |
* @param idInSourceList |
|
30 |
* @param idNamespace |
|
31 |
* @return |
|
32 | 26 |
*/ |
33 | 27 |
public <S extends ISourceable> Map<String, S> findOriginalSourcesByIdInSource(Class<S> clazz, Set<String> idInSourceSet, String idNamespace); |
34 | 28 |
|
35 | 29 |
|
36 | 30 |
/** |
37 | 31 |
* Returns a list of identifiable entities according to their class, idInSource and idNamespace |
38 |
* @param clazz |
|
39 |
* @param idInSource |
|
40 |
* @param idNamespace |
|
41 |
* @return |
|
42 | 32 |
*/ |
43 | 33 |
public <S extends ISourceable> List<S> findOriginalSourceByIdInSource(Class<S> clazz, String idInSource, String idNamespace); |
44 | 34 |
|
45 | 35 |
/** |
46 | 36 |
* Returns the first OriginalSource with according idInSource and idNamespace |
47 |
* @param idInSource |
|
48 |
* @param idNamespace |
|
49 |
* @return |
|
50 | 37 |
*/ |
51 | 38 |
public List<OriginalSourceBase> findOriginalSourceByIdInSource(String idInSource, String idNamespace); |
52 | 39 |
|
Also available in: Unified diff
cleanup