2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.api
.service
.molecular
;
11 import java
.util
.List
;
12 import java
.util
.UUID
;
14 import org
.hibernate
.criterion
.Criterion
;
16 import eu
.etaxonomy
.cdm
.api
.service
.IAnnotatableService
;
17 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
18 import eu
.etaxonomy
.cdm
.model
.molecular
.Amplification
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.initializer
.IBeanInitializer
;
20 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
21 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
22 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
29 public interface IAmplificationService
extends IAnnotatableService
<Amplification
>{
32 * Retrieves the {@link UUID} and the string label of all
33 * {@link Amplification}s found in the data base.
34 * @return a list of {@link UuidAndTitleCache}
36 public List
<UuidAndTitleCache
<Amplification
>> getAmplificationUuidAndLabelCache(Integer limit
, String pattern
);
39 * Return a List of {@link Amplification}s matching the given query string, optionally with a particular MatchMode
41 * @param queryString the query string to filter by
42 * @param matchmode use a particular type of matching (can be null - defaults to exact matching)
43 * @param criteria extra restrictions to apply
44 * @param pageSize The maximum number of rights returned (can be null for all rights)
45 * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
46 * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
48 * Supports path like <code>orderHints.propertyNames</code> which
49 * include *-to-one properties like createdBy.username or
50 * authorTeam.persistentTitleCache
51 * @return a List of instances of type T matching the queryString
53 Pager
<Amplification
> findByLabelCache(String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
,
54 Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
);