Project

General

Profile

Download (2.81 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2014 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.persistence.dao.molecular;
10

    
11
import java.util.List;
12
import java.util.UUID;
13

    
14
import org.hibernate.criterion.Criterion;
15

    
16
import eu.etaxonomy.cdm.model.molecular.Amplification;
17
import eu.etaxonomy.cdm.persistence.dao.common.IAnnotatableDao;
18
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;
19
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
20
import eu.etaxonomy.cdm.persistence.query.MatchMode;
21
import eu.etaxonomy.cdm.persistence.query.OrderHint;
22

    
23
/**
24
 * @author pplitzner
25
 * @date 11.03.2014
26
 *
27
 */
28
public interface IAmplificationDao extends IAnnotatableDao<Amplification>{
29

    
30
    /**
31
     * Retrieves the {@link UUID} and the string representation (title cache) of all
32
     * {@link Amplification}s found in the data base.
33
     * @return a list of {@link UuidAndTitleCache}
34
     */
35
    public List<UuidAndTitleCache<Amplification>> getAmplificationUuidAndLabelCache();
36

    
37
    /**
38
     * Return a count of {@link Amplification}s matching the given query string in the titleCache, optionally with a particular MatchMode
39
     *
40
     * @param queryString the query string to filter by
41
     * @param matchmode use a particular type of matching (can be null - defaults to exact matching)
42
     * @param criteria extra restrictions to apply
43
     * @return a count of instances of type T matching the queryString
44
     */
45
    public long countByTitle(String queryString, MatchMode matchmode, List<Criterion> criteria);
46

    
47
    /**
48
    * Return a List of {@link Amplification}s matching the given query string, optionally with a particular MatchMode
49
    *
50
    * @param queryString the query string to filter by
51
    * @param matchmode use a particular type of matching (can be null - defaults to exact matching)
52
    * @param criteria extra restrictions to apply
53
    * @param pageSize The maximum number of rights returned (can be null for all rights)
54
    * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
55
    * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
56
    * @param orderHints
57
    *            Supports path like <code>orderHints.propertyNames</code> which
58
    *            include *-to-one properties like createdBy.username or
59
    *            authorTeam.persistentTitleCache
60
    * @return a List of instances of type T matching the queryString
61
    */
62
    public List<Amplification> findByTitle(String queryString, MatchMode matchmode, List<Criterion> criteria,
63
            Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
64
}
(1-1/4)