Added an IIdentificationKeyDao to query across all identification key types
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / dao / description / IIdentificationKeyDao.java
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.description;
11
12 import java.util.Collection;
13 import java.util.List;
14 import java.util.Map;
15 import java.util.Set;
16 import java.util.UUID;
17
18 import org.hibernate.LockMode;
19 import org.hibernate.Session;
20 import org.springframework.dao.DataAccessException;
21
22 import eu.etaxonomy.cdm.model.common.CdmBase;
23 import eu.etaxonomy.cdm.model.description.IIdentificationKey;
24 import eu.etaxonomy.cdm.persistence.dao.BeanInitializer;
25 import eu.etaxonomy.cdm.persistence.query.Grouping;
26 import eu.etaxonomy.cdm.persistence.query.OrderHint;
27
28 /**
29 * A read-only interface to allow querying across all IIdentificationKey instances, regardless of type
30 * @author ben.clark
31 * @version 1.0
32 * @created 21-Dec-2009 13:48:10
33 */
34 public interface IIdentificationKeyDao {
35
36
37 /**
38 * Returns a sublist of IIdentificationKey instances stored in the database. A maximum
39 * of 'limit' objects are returned, starting at object with index 'start'.
40 *
41 * @param type
42 * @param limit
43 * the maximum number of entities returned (can be null to return
44 * all entities)
45 * @param start
46 * @return
47 * @throws DataAccessException
48 */
49 public List<IIdentificationKey> list(Integer limit, Integer start, List<String> propertyPaths);
50
51 /**
52 * Returns the number of objects of type IIdentificationKey
53 * @return
54 */
55 public int count();
56 }