1 |
78c2bf74
|
Katja Luther
|
/**
|
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 |
2a4c4dd0
|
Andreas Müller
|
*/
|
9 |
78c2bf74
|
Katja Luther
|
|
10 |
b3b6e319
|
ben.clark
|
package eu.etaxonomy.cdm.persistence.dao.common;
|
11 |
|
|
|
12 |
a784f00f
|
Katja Luther
|
import java.util.List;
|
13 |
|
|
|
14 |
b3b6e319
|
ben.clark
|
import eu.etaxonomy.cdm.model.common.Marker;
|
15 |
a784f00f
|
Katja Luther
|
import eu.etaxonomy.cdm.model.common.MarkerType;
|
16 |
b9cbcc7c
|
Andreas Kohlbecker
|
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;
|
17 |
a784f00f
|
Katja Luther
|
import eu.etaxonomy.cdm.persistence.query.OrderHint;
|
18 |
b3b6e319
|
ben.clark
|
|
19 |
a784f00f
|
Katja Luther
|
public interface IMarkerDao extends IVersionableDao<Marker> {
|
20 |
2a4c4dd0
|
Andreas Müller
|
|
21 |
a784f00f
|
Katja Luther
|
/**
|
22 |
|
|
* Returns a count of markers which have the same type
|
23 |
|
|
* @param markerType The type of markerType
|
24 |
|
|
* @return a count of markers
|
25 |
|
|
*/
|
26 |
2a4c4dd0
|
Andreas Müller
|
public long count(MarkerType markerType);
|
27 |
|
|
|
28 |
a784f00f
|
Katja Luther
|
/**
|
29 |
|
|
* Returns a list of markers which have the same type
|
30 |
2a4c4dd0
|
Andreas Müller
|
*
|
31 |
a784f00f
|
Katja Luther
|
* @param markerType The type of markerType
|
32 |
|
|
* @param pageSize The maximum number of markers returned (can be null for all markers)
|
33 |
|
|
* @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
|
34 |
|
|
* @param orderHints may be null
|
35 |
dd4c21b7
|
Andreas Kohlbecker
|
* @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
|
36 |
a784f00f
|
Katja Luther
|
* @return
|
37 |
|
|
*/
|
38 |
|
|
public List<Marker> list(MarkerType markerType, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
|
39 |
b3b6e319
|
ben.clark
|
|
40 |
|
|
}
|