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.api.service;
|
11
|
|
12
|
|
13
|
import java.util.List;
|
14
|
|
15
|
import org.springframework.transaction.annotation.Propagation;
|
16
|
import org.springframework.transaction.annotation.Transactional;
|
17
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
18
|
import eu.etaxonomy.cdm.model.common.Language;
|
19
|
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
20
|
|
21
|
|
22
|
/**
|
23
|
* @author a.mueller
|
24
|
*
|
25
|
*/
|
26
|
@Transactional(propagation=Propagation.SUPPORTS)
|
27
|
public interface IService<T extends CdmBase>{
|
28
|
|
29
|
public abstract int count(Class<T> clazz);
|
30
|
|
31
|
public abstract List<T> list(int limit, int start);
|
32
|
|
33
|
public abstract List<T> rows(String tableName, int limit, int start);
|
34
|
|
35
|
}
|