28 */ |
28 */ |
29 package de.uapcore.lightpit.dao; |
29 package de.uapcore.lightpit.dao; |
30 |
30 |
31 import de.uapcore.lightpit.entities.Project; |
31 import de.uapcore.lightpit.entities.Project; |
32 import de.uapcore.lightpit.entities.Version; |
32 import de.uapcore.lightpit.entities.Version; |
|
33 import de.uapcore.lightpit.entities.VersionStatistics; |
33 |
34 |
34 import java.sql.SQLException; |
35 import java.sql.SQLException; |
35 import java.util.List; |
36 import java.util.List; |
36 |
37 |
37 public interface VersionDao extends GenericDao<Version> { |
38 public interface VersionDao extends GenericDao<Version> { |
42 * @param project the project |
43 * @param project the project |
43 * @return a list of versions |
44 * @return a list of versions |
44 * @throws SQLException on any kind of SQL error |
45 * @throws SQLException on any kind of SQL error |
45 */ |
46 */ |
46 List<Version> list(Project project) throws SQLException; |
47 List<Version> list(Project project) throws SQLException; |
|
48 |
|
49 /** |
|
50 * Retrieves statistics about issues that arose in a version. |
|
51 * |
|
52 * @param version the version |
|
53 * @return version statistics |
|
54 * @throws SQLException on any kind of SQL error |
|
55 */ |
|
56 VersionStatistics statsOpenedIssues(Version version) throws SQLException; |
|
57 |
|
58 /** |
|
59 * Retrieves statistics about issues that are scheduled for a version. |
|
60 * |
|
61 * @param version the version |
|
62 * @return version statistics |
|
63 * @throws SQLException on any kind of SQL error |
|
64 */ |
|
65 VersionStatistics statsScheduledIssues(Version version) throws SQLException; |
|
66 |
|
67 /** |
|
68 * Retrieves statistics about issues that are resolved in a version. |
|
69 * |
|
70 * @param version the version |
|
71 * @return version statistics |
|
72 * @throws SQLException on any kind of SQL error |
|
73 */ |
|
74 VersionStatistics statsResolvedIssues(Version version) throws SQLException; |
47 } |
75 } |