Project

General

Profile

« Previous | Next » 

Revision fbeefcaf

Added by Andreas Müller over 7 years ago

ref #5974 Replace synonymRelationshipType by SynonymType and replace some other occurrences of synonym relationship

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/taxon/ITaxonDao.java
25 25
import eu.etaxonomy.cdm.model.reference.Reference;
26 26
import eu.etaxonomy.cdm.model.taxon.Classification;
27 27
import eu.etaxonomy.cdm.model.taxon.Synonym;
28
import eu.etaxonomy.cdm.model.taxon.SynonymRelationshipType;
28
import eu.etaxonomy.cdm.model.taxon.SynonymType;
29 29
import eu.etaxonomy.cdm.model.taxon.Taxon;
30 30
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
31 31
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
......
320 320
            Direction direction);
321 321

  
322 322
    /**
323
     * Returns a count of the SynonymRelationships (of where relationship.type == type,
324
     *  if this arguement is supplied) where the supplied taxon is relatedTo.
323
     * Returns a count of the Synonyms (where relationship.type == type,
324
     *  if this argument is supplied) where the supplied taxon is relatedTo.
325 325
     *
326 326
     * @param taxon The taxon that is relatedTo
327
     * @param type The type of SynonymRelationship (can be null)
328
     * @return the number of SynonymRelationship instances
327
     * @param type The type of Synonym (can be null)
328
     * @return the number of Synonym instances
329 329
     */
330
    public int countSynonyms(Taxon taxon, SynonymRelationshipType type);
330
    public int countSynonyms(Taxon taxon, SynonymType type);
331 331

  
332 332
    /**
333 333
     * Returns the Synonyms (of where relationship.type == type, if this argument is supplied)
......
341 341
     * @param propertyPaths Properties to initialize in the returned entities, following the syntax described in {@link IBeanInitializer#initialize(Object, List)}
342 342
     * @return a {@link List} of {@link Synonym} instances
343 343
     */
344
    public List<Synonym> getSynonyms(Taxon taxon, SynonymRelationshipType type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
344
    public List<Synonym> getSynonyms(Taxon taxon, SynonymType type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
345 345

  
346 346
    /**
347
     * Returns a count of the SynonymRelationships (of where relationship.type == type,
348
     *  if this arguement is supplied) where the supplied synonym is relatedFrom.
347
     * Returns a count of the synonyms (where relationship.type == type,
348
     * if this argument is supplied) which do have an accepted taxon.
349 349
     *
350
     * @param taxon The synonym that is relatedFrom
351
     * @param type The type of SynonymRelationship (can be null)
352
     * @return the number of SynonymRelationship instances
350
     * @param synonym The synonym that is relatedFrom
351
     * @param type The type of Synonym (can be null)
352
     * @return the number of Synonym instances
353 353
     */
354
    public int countSynonyms(Synonym synonym, SynonymRelationshipType type);
354
    public int countSynonyms(Synonym synonym, SynonymType type);
355 355

  
356 356
    public List<TaxonNameBase> findIdenticalTaxonNames(List<String> propertyPath);
357 357

  

Also available in: Unified diff