Project

General

Profile

Download (2.45 KB) Statistics
| Branch: | Tag: | Revision:
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.taxon;
11

    
12
import java.util.List;
13
import java.util.UUID;
14

    
15
import eu.etaxonomy.cdm.model.taxon.Classification;
16
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
17
import eu.etaxonomy.cdm.model.taxon.TaxonNodeAgentRelation;
18
import eu.etaxonomy.cdm.persistence.dao.common.IAnnotatableDao;
19

    
20
/**
21
 * @author a.mueller
22
 *
23
 */
24
public interface ITaxonNodeDao extends IAnnotatableDao<TaxonNode> {
25

    
26
	public UUID delete(TaxonNode persistentObject, boolean deleteChildren);
27

    
28
	/**
29
    *
30
    * @return
31
    */
32
   public List<TaxonNode> getTaxonOfAcceptedTaxaByClassification(Classification classification, Integer start, Integer end);
33

    
34
    /**
35
     * @param classification
36
     * @return
37
     */
38
    public int countTaxonOfAcceptedTaxaByClassification(Classification classification);
39

    
40
    public List<TaxonNode> listChildrenOf(TaxonNode node, Integer pageSize, Integer pageIndex, List<String> propertyPaths, boolean recursive);
41

    
42
    public abstract Long countChildrenOf(TaxonNode node, Classification classification, boolean recursive);
43

    
44
    /**
45
     * Returns the of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
46
     * given TaxonUuid in the specified Classification.
47
     *
48
     * @param taxonUuid
49
     * @param agentUuid TODO
50
     * @param relTypeUuid TODO
51
     * @param start
52
     * @param limit
53
     * @param propertyPaths
54
     * @param rankId TODO
55
     * @param classification
56
     * @return
57
     */
58
    public List<TaxonNodeAgentRelation> listTaxonNodeAgentRelations(UUID taxonUuid, UUID classificationUuid,
59
            UUID agentUuid, UUID rankUuid, UUID relTypeUuid, Integer start, Integer limit, List<String> propertyPaths);
60

    
61
    /**
62
     * Returns the number of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
63
     * given TaxonUuid in the specified Classification.
64
     *
65
     * @param taxonUuid
66
     * @param agentUuid TODO
67
     * @param relTypeUuid TODO
68
     * @param rankId TODO
69
     * @param classification
70
     * @return
71
     */
72
    public long countTaxonNodeAgentRelations(UUID taxonUuid, UUID classificationUuid, UUID agentUuid, UUID rankUuid, UUID relTypeUuid);
73

    
74

    
75
}
(3-3/3)