Project

General

Profile

« Previous | Next » 

Revision d4992817

Added by Andreas Kohlbecker about 13 years ago

splitting PolytomousKeyNodeService from PolytomousKeyService & more methods for IdentificationKeyService

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/description/IIdentificationKeyDao.java
14 14
import org.springframework.dao.DataAccessException;
15 15

  
16 16
import eu.etaxonomy.cdm.model.description.IIdentificationKey;
17
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
17 18

  
18 19
/**
19 20
 * A read-only interface to allow querying across all IIdentificationKey instances, regardless of type
......
43 44
	 * @return
44 45
	 */
45 46
	public int count();
47
	
48
	/**
49
	 * Finds IdentificationKeys which cover the Taxon given as parameter
50
	 * 
51
	 * @param taxon
52
	 *            The Taxon to search IdentificationKeys for
53
	 * @param type
54
	 *            may restrict the type to a specific implementation of
55
	 *            IIdentificationKey
56
	 * @param pageSize
57
	 *            The maximum number of objects returned (can be null for all
58
	 *            matching objects)
59
	 * @param pageNumber
60
	 *            The offset (in pageSize chunks) from the start of the result
61
	 *            set (0 - based, can be null, equivalent of starting at the
62
	 *            beginning of the recordset)
63
	 * @param propertyPaths
64
	 *            properties to be initialized
65
	 * @return a List of IdentificationKeys
66
	 */
67
	public <T extends IIdentificationKey> List<T> findByTaxonomicScope(
68
			TaxonBase taxon, Class<T> type, Integer pageSize,
69
			Integer pageNumber, List<String> propertyPaths);
70

  
71
	/**
72
	 * Counts IdentificationKeys which cover the Taxon given as parameter
73
	 * 
74
	 * @param taxon The Taxon to search IdentificationKeys for
75
	 * @param type may restrict the type to a specific implementation of
76
	 *            IIdentificationKey
77
	 * @return 
78
	 */
79
	public <T extends IIdentificationKey> Long countByTaxonomicScope(TaxonBase taxon, Class<T> type);
46 80
} 

Also available in: Unified diff