1
|
/**
|
2
|
* Copyright (C) 2007 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
|
|
10
|
package eu.etaxonomy.cdm.persistence.dao.common;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.hibernate.criterion.Criterion;
|
15
|
|
16
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
17
|
import eu.etaxonomy.cdm.persistence.query.MatchMode;
|
18
|
|
19
|
public interface ITitledDao<T extends CdmBase> {
|
20
|
|
21
|
public List<T> findByTitle(String queryString);
|
22
|
|
23
|
public List<T> findByTitle(String queryString, CdmBase sessionObject);
|
24
|
|
25
|
public long countByTitle(String queryString);
|
26
|
|
27
|
public long countByTitle(String queryString, CdmBase sessionObject);
|
28
|
|
29
|
public long countByTitle(String queryString, MatchMode matchMode, List<Criterion> criteria);
|
30
|
|
31
|
public List<T> findByTitle(String queryString, MatchMode matchMode, int page, int pagesize, List<Criterion> criteria);
|
32
|
|
33
|
}
|