Project

General

Profile

Download (1.8 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 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.api.service.config;
11

    
12
import java.io.Serializable;
13
import java.util.List;
14

    
15
import org.hibernate.criterion.Criterion;
16

    
17
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
18
import eu.etaxonomy.cdm.persistence.dao.common.Restriction;
19
import eu.etaxonomy.cdm.persistence.query.MatchMode;
20
import eu.etaxonomy.cdm.persistence.query.OrderHint;
21

    
22
/**
23
 * @author a.babadshanjan
24
 * @since 03.03.2009
25
 */
26
public interface IIdentifiableEntityServiceConfigurator<T extends IIdentifiableEntity>
27
            extends Serializable {
28

    
29
	public Class<T> getClazz();
30

    
31
	public void setClazz(Class<? extends T> clazz);
32

    
33
	public String getTitleSearchString();
34

    
35
	/**
36
	 * Replaces all occurrences of '*' in titleSearchString with '%'
37
	 *
38
	 * @return
39
	 */
40
	public String getTitleSearchStringSqlized();
41
	public void setTitleSearchString(String titleSearchString);
42

    
43
	public MatchMode getMatchMode();
44
	public void setMatchMode(MatchMode matchMode);
45

    
46
	public Integer getPageSize();
47
	public void setPageSize(Integer pageSize);
48

    
49
	public Integer getPageNumber();
50
	public void setPageNumber(Integer pageNumber);
51

    
52
	public List<Criterion> getCriteria();
53
    public void setCriteria(List<Criterion> criteria);
54

    
55
	public List<Restriction<?>> getRestrictions();
56
	public void setRestrictions(List<Restriction<?>> restrictions);
57

    
58
	public List<OrderHint> getOrderHints();
59
	public void setOrderHints(List<OrderHint> orderHints);
60

    
61
	public List<String> getPropertyPaths();
62
	public void setPropertyPaths(List<String> propertyPaths);
63

    
64
}
(9-9/30)