Project

General

Profile

Download (1.54 KB) Statistics
| Branch: | Tag: | Revision:
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

    
17
import eu.etaxonomy.cdm.model.common.CdmBase;
18
import eu.etaxonomy.cdm.persistence.query.MatchMode;
19

    
20
public interface ITitledDao<T extends CdmBase> {
21
	
22
	/**
23
	 * @param queryString
24
	 * @return
25
	 */
26
	public List<T> findByTitle(String queryString);
27

    
28
	/**
29
	 * @param queryString
30
	 * @param sessionObject
31
	 * @return
32
	 */
33
	public List<T> findByTitle(String queryString, CdmBase sessionObject);
34
	
35
	public List<T> findByTitleAndClass(String queryString, Class<T> clazz);
36
	
37
	/**
38
	 * @param queryString
39
	 * @param matchAnywhere
40
	 * @param page
41
	 * @param pagesize
42
	 * @param criteria TODO
43
	 * @return
44
	 */
45
	public List<T> findByTitle(String queryString, MatchMode matchMode, int page, int pagesize, List<Criterion> criteria);
46
	
47
	/**
48
	 * @param queryString
49
	 * @return
50
	 */
51
	public Integer countByTitle(String queryString);
52

    
53
	/**
54
	 * @param queryString
55
	 * @param sessionObject
56
	 * @return
57
	 */
58
	public Integer countByTitle(String queryString, CdmBase sessionObject);
59
	
60
	/**
61
	 * @param queryString
62
	 * @param matchAnywhere
63
	 * @param page
64
	 * @param pagesize
65
	 * @param criteria TODO
66
	 * @return
67
	 */
68
	public Integer countByTitle(String queryString, MatchMode matchMode, List<Criterion> criteria);
69
}
(20-20/23)