Project

General

Profile

« Previous | Next » 

Revision 65b68496

Added by Andreas Müller over 7 years ago

fix #6072 Implement findIdentifiableEntityByMarkers

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/taxon/ITaxonDao.java
17 17

  
18 18
import eu.etaxonomy.cdm.model.common.DefinedTerm;
19 19
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
20
import eu.etaxonomy.cdm.model.common.MarkerType;
20 21
import eu.etaxonomy.cdm.model.common.RelationshipBase;
21 22
import eu.etaxonomy.cdm.model.common.RelationshipBase.Direction;
22 23
import eu.etaxonomy.cdm.model.location.NamedArea;
......
439 440
			DefinedTerm identifierType, TaxonNode subtreeFilter, MatchMode matchmode,
440 441
			boolean includeEntity, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
441 442

  
443
	/**
444
	 * Counts all taxa which match the given identifier (identifier type, identifier string and match mode).
445
	 * Optionally a subtreefilter can be defined.
446
	 *
447
	 * @param clazz optional, the TaxonBase subclass
448
	 * @param identifier the identifier string
449
	 * @param identifierType the identifier type
450
     * @param matchmode the match mode for the identifier string
451
	 * @param subtreeFilter the subtree filter as taxon node
452
	 * @return
453
	 */
442 454
	public <S extends TaxonBase> int countByIdentifier(Class<S> clazz,
443 455
			String identifier, DefinedTerm identifierType, TaxonNode subtreeFilter, MatchMode matchmode);
444 456

  
457
	/**
458
     * Counts all taxa which have the given marker of type markerType and with value markerValue.
459
     * Additionally an optional subtreefilter can be defined.
460
     *
461
     * @param clazz
462
     * @param markerType
463
     * @param markerValue
464
     * @param subtreeFilter
465
     * @return
466
     */
467
    public <S extends TaxonBase> long countByMarker(Class<S> clazz, MarkerType markerType,
468
            Boolean markerValue, TaxonNode subtreeFilter);
469

  
470
    /**
471
     * @param clazz
472
     * @param markerType
473
     * @param markerValue
474
     * @param subtreeFilter
475
     * @param includeEntity
476
     * @param pageSize
477
     * @param pageNumber
478
     * @param propertyPaths
479
     * @return
480
     */
481
    public <S extends TaxonBase> List<Object[]> findByMarker(Class<S> clazz, MarkerType markerType,
482
            Boolean markerValue, TaxonNode subtreeFilter, boolean includeEntity,
483
            Integer pageSize, Integer pageNumber, List<String> propertyPaths);
484

  
445 485
    /**
446 486
     * @param classification
447 487
     * @param excludeUuid

Also available in: Unified diff