2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.persistence
.dao
.common
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
16 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
23 public interface ITermVocabularyDao
extends ICdmEntityDao
<TermVocabulary
<DefinedTermBase
>> {
26 * Return a count of terms that belong to the termVocabulary supplied
28 * @param termVocabulary The term vocabulary which 'owns' the terms of interest
29 * @return a count of terms
31 public int countTerms(TermVocabulary termVocabulary
);
34 * Return a List of terms that belong to the termVocabulary supplied
36 * @param termVocabulary The term vocabulary which 'owns' the terms of interest
37 * @param pageSize The maximum number of terms returned (can be null for all terms)
38 * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
39 * @return a List of terms
41 public <T
extends DefinedTermBase
> List
<T
> getTerms(TermVocabulary
<T
> termVocabulary
, Integer pageSize
, Integer pageNumber
);