2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.persistence
.dao
.common
;
12 import java
.util
.List
;
14 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
15 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
16 import eu
.etaxonomy
.cdm
.persistence
.dao
.BeanInitializer
;
17 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
19 public interface IMarkerDao
extends IVersionableDao
<Marker
> {
22 * Returns a count of markers which have the same type
23 * @param markerType The type of markerType
24 * @return a count of markers
26 public int count(MarkerType markerType
);
29 * Returns a list of markers which have the same type
31 * @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 * @param propertyPaths properties to initialize - see {@link BeanInitializer#initialize(Object, List)}
38 public List
<Marker
> list(MarkerType markerType
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
);