1 package org.itracker.persistence.dao;
2
3 import org.itracker.model.Report;
4
5 import java.util.List;
6
7 /**
8 *
9 */
10 public interface ReportDAO extends BaseDAO<Report> {
11
12 /**
13 * Finds a report by id.
14 *
15 * @param reportId system ID
16 * @return report instance or <tt>null</tt> if none exists with the given id
17 */
18 Report findByPrimaryKey(Integer reportId);
19
20 /**
21 * Finds all existing reports.
22 *
23 * @return list of reports in unspecified order
24 */
25 List<Report> findAll();
26
27 }