1.1 --- a/src/main/java/de/uapcore/lightpit/dao/VersionDao.java Sat May 23 14:13:09 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/dao/VersionDao.java Sun May 24 15:30:43 2020 +0200 1.3 @@ -30,6 +30,7 @@ 1.4 1.5 import de.uapcore.lightpit.entities.Project; 1.6 import de.uapcore.lightpit.entities.Version; 1.7 +import de.uapcore.lightpit.entities.VersionStatistics; 1.8 1.9 import java.sql.SQLException; 1.10 import java.util.List; 1.11 @@ -44,4 +45,31 @@ 1.12 * @throws SQLException on any kind of SQL error 1.13 */ 1.14 List<Version> list(Project project) throws SQLException; 1.15 + 1.16 + /** 1.17 + * Retrieves statistics about issues that arose in a version. 1.18 + * 1.19 + * @param version the version 1.20 + * @return version statistics 1.21 + * @throws SQLException on any kind of SQL error 1.22 + */ 1.23 + VersionStatistics statsOpenedIssues(Version version) throws SQLException; 1.24 + 1.25 + /** 1.26 + * Retrieves statistics about issues that are scheduled for a version. 1.27 + * 1.28 + * @param version the version 1.29 + * @return version statistics 1.30 + * @throws SQLException on any kind of SQL error 1.31 + */ 1.32 + VersionStatistics statsScheduledIssues(Version version) throws SQLException; 1.33 + 1.34 + /** 1.35 + * Retrieves statistics about issues that are resolved in a version. 1.36 + * 1.37 + * @param version the version 1.38 + * @return version statistics 1.39 + * @throws SQLException on any kind of SQL error 1.40 + */ 1.41 + VersionStatistics statsResolvedIssues(Version version) throws SQLException; 1.42 }