75fbf01c11f59edc3a03c5d964e40fc819a455cb
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / dao / taxon / ITaxonNodeDao.java
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.persistence.dao.common.IAnnotatableDao;
18
19 /**
20 * @author a.mueller
21 *
22 */
23 public interface ITaxonNodeDao extends IAnnotatableDao<TaxonNode> {
24
25 public UUID delete(TaxonNode persistentObject, boolean deleteChildren);
26
27 /**
28 *
29 * @return
30 */
31 public List<TaxonNode> getTaxonOfAcceptedTaxaByClassification(Classification classification, Integer start, Integer end);
32
33 /**
34 * @param classification
35 * @return
36 */
37 public int countTaxonOfAcceptedTaxaByClassification(Classification classification);
38
39 public List<TaxonNode> listChildrenOf(TaxonNode node, Integer pageSize, Integer pageIndex, List<String> propertyPaths, boolean recursive);
40
41 public abstract Long countChildrenOf(TaxonNode node, Classification classification, boolean recursive);
42 }