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.persistence.dao.reference;
|
11
|
|
12
|
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
|
13
|
import eu.etaxonomy.cdm.model.reference.ISourceable;
|
14
|
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase;
|
15
|
import eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao;
|
16
|
|
17
|
import java.util.List;
|
18
|
import java.util.Map;
|
19
|
import java.util.Set;
|
20
|
|
21
|
|
22
|
public interface IOriginalSourceDao extends ICdmEntityDao<OriginalSourceBase>{
|
23
|
|
24
|
|
25
|
/**
|
26
|
* Returns a map of identifiable entities of class <code>clazz</code> which have an original source of
|
27
|
* with namespace <code>idNamespace</code> and with an idInSource in <code>idInSourceList</code> <BR>
|
28
|
* The key of the map is the idInSource. If there are multiple objects that have the same id an arbitrary one is chosen.
|
29
|
* @param clazz
|
30
|
* @param idInSourceList
|
31
|
* @param idNamespace
|
32
|
* @return
|
33
|
*/
|
34
|
public Map<String, ISourceable> findOriginalSourcesByIdInSource(Class clazz, Set<String> idInSourceSet, String idNamespace);
|
35
|
|
36
|
|
37
|
/**
|
38
|
* Returns a list of identifiable entities according to their class, idInSource and idNamespace
|
39
|
* @param clazz
|
40
|
* @param idInSource
|
41
|
* @param idNamespace
|
42
|
* @return
|
43
|
*/
|
44
|
public List<IdentifiableEntity> findOriginalSourceByIdInSource(Class clazz, String idInSource, String idNamespace);
|
45
|
|
46
|
/**
|
47
|
* Returns the first OriginalSource with according idInSource and idNamespace
|
48
|
* @param idInSource
|
49
|
* @param idNamespace
|
50
|
* @return
|
51
|
*/
|
52
|
public List<OriginalSourceBase> findOriginalSourceByIdInSource(String idInSource, String idNamespace);
|
53
|
|
54
|
|
55
|
}
|