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.hibernate.name;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
import org.hibernate.Criteria;
|
16
|
import org.springframework.stereotype.Repository;
|
17
|
|
18
|
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
|
19
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus;
|
20
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.ReferencedEntityDaoImpl;
|
21
|
import eu.etaxonomy.cdm.persistence.dao.name.INomenclaturalStatusDao;
|
22
|
|
23
|
/**
|
24
|
* @author a.mueller
|
25
|
*
|
26
|
*/
|
27
|
@Repository
|
28
|
public class NomenclaturalStatusDaoHibernateImpl
|
29
|
extends ReferencedEntityDaoImpl<NomenclaturalStatus> implements INomenclaturalStatusDao {
|
30
|
@SuppressWarnings("unused")
|
31
|
private static final Logger logger = Logger.getLogger(NomenclaturalStatusDaoHibernateImpl.class);
|
32
|
|
33
|
public NomenclaturalStatusDaoHibernateImpl() {
|
34
|
super(NomenclaturalStatus.class);
|
35
|
}
|
36
|
|
37
|
public List<ReferencedEntityBase> getAllNomenclaturalStatus(Integer limit, Integer start) {
|
38
|
Criteria crit = getSession().createCriteria(NomenclaturalStatus.class);
|
39
|
List<ReferencedEntityBase> results = crit.list();
|
40
|
return results;
|
41
|
}
|
42
|
|
43
|
}
|