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.description;
|
11
|
|
12
|
import java.util.List;
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.common.TermType;
|
16
|
import eu.etaxonomy.cdm.model.description.FeatureNode;
|
17
|
import eu.etaxonomy.cdm.model.description.FeatureTree;
|
18
|
import eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao;
|
19
|
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
|
20
|
|
21
|
/**
|
22
|
* @author a.mueller
|
23
|
* @since 10.07.2008
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public interface IFeatureTreeDao extends IIdentifiableDao<FeatureTree> {
|
27
|
public List<FeatureTree> list();
|
28
|
|
29
|
public UUID DefaultFeatureTreeUuid = UUID.fromString("ac8d4e58-926d-4f81-ac77-cebdd295df7c");
|
30
|
|
31
|
/**
|
32
|
* Loads nodes and the nodes child nodes recursively
|
33
|
* @param nodes
|
34
|
* @param nodePaths
|
35
|
*/
|
36
|
public void deepLoadNodes(List<FeatureNode> nodes, List<String> nodePaths);
|
37
|
|
38
|
public <S extends FeatureTree> List<UuidAndTitleCache<S>> getUuidAndTitleCacheByTermType(Class<S> clazz, TermType termType, Integer limit,
|
39
|
String pattern);
|
40
|
}
|