Revision 7426d467
Added by Patrick Plitzner almost 6 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/occurrence/IOccurrenceDao.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType; |
29 | 29 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
30 | 30 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
31 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
31 | 32 |
import eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao; |
32 | 33 |
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer; |
33 | 34 |
import eu.etaxonomy.cdm.persistence.dto.SpecimenNodeWrapper; |
... | ... | |
313 | 314 |
public <T extends SpecimenOrObservationBase> List<UuidAndTitleCache<SpecimenOrObservationBase>> listUuidAndTitleCacheByAssociatedTaxon(Class<T> type, Taxon associatedTaxon, |
314 | 315 |
Integer limit, Integer start, List<OrderHint> orderHints); |
315 | 316 |
|
317 |
/** |
|
318 |
* The method will search for specimen associated with the taxon nodes.<br> |
|
319 |
* It will search for 3 possible association types: |
|
320 |
* : <br> |
|
321 |
* - via IndividualAssociations of the taxon<br> |
|
322 |
* - via TypeDesignations of the taxon name<br> |
|
323 |
* - via Determinations of the taxon or taxon name<br> |
|
324 |
* <br> |
|
325 |
* (more are covered in |
|
326 |
* {@link IOccurrenceDao#findOccurrences(Class, String, String, SpecimenOrObservationType, Taxon, TaxonName, MatchMode, Integer, Integer, List, List)} |
|
327 |
* @param taxonNodeUuids a list of {@link UUID}s of the taxon nodes |
|
328 |
* @param limit |
|
329 |
* @param start |
|
330 |
* @param orderHints |
|
331 |
* @return a list of {@link SpecimenNodeWrapper} containing the {@link TaxonNode} |
|
332 |
* and the corresponding {@link UuidAndTitleCache} object for the specimen found for this taxon node |
|
333 |
*/ |
|
316 | 334 |
public List<SpecimenNodeWrapper> listUuidAndTitleCacheByAssociatedTaxon(List<UUID> taxonNodeUuids, |
317 | 335 |
Integer limit, Integer start, List<OrderHint> orderHints); |
318 | 336 |
|
Also available in: Unified diff
ref #7095 Enhance quicker service for taxon associated specimens