diff -r f64255a88d66 -r 27a25f32048e src/main/java/de/uapcore/lightpit/dao/VersionDao.java --- a/src/main/java/de/uapcore/lightpit/dao/VersionDao.java Sat May 23 14:13:09 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/dao/VersionDao.java Sun May 24 15:30:43 2020 +0200 @@ -30,6 +30,7 @@ import de.uapcore.lightpit.entities.Project; import de.uapcore.lightpit.entities.Version; +import de.uapcore.lightpit.entities.VersionStatistics; import java.sql.SQLException; import java.util.List; @@ -44,4 +45,31 @@ * @throws SQLException on any kind of SQL error */ List list(Project project) throws SQLException; + + /** + * Retrieves statistics about issues that arose in a version. + * + * @param version the version + * @return version statistics + * @throws SQLException on any kind of SQL error + */ + VersionStatistics statsOpenedIssues(Version version) throws SQLException; + + /** + * Retrieves statistics about issues that are scheduled for a version. + * + * @param version the version + * @return version statistics + * @throws SQLException on any kind of SQL error + */ + VersionStatistics statsScheduledIssues(Version version) throws SQLException; + + /** + * Retrieves statistics about issues that are resolved in a version. + * + * @param version the version + * @return version statistics + * @throws SQLException on any kind of SQL error + */ + VersionStatistics statsResolvedIssues(Version version) throws SQLException; }