src/main/java/de/uapcore/lightpit/dao/IssueDao.java

changeset 86
0a658e53177c
parent 75
33b6843fdf8a
child 105
250c5cbb8276
--- a/src/main/java/de/uapcore/lightpit/dao/IssueDao.java	Sat May 30 18:12:38 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/dao/IssueDao.java	Mon Jun 01 14:46:58 2020 +0200
@@ -30,6 +30,7 @@
 
 import de.uapcore.lightpit.entities.Issue;
 import de.uapcore.lightpit.entities.Project;
+import de.uapcore.lightpit.entities.Version;
 
 import java.sql.SQLException;
 import java.util.List;
@@ -48,6 +49,15 @@
     List<Issue> list(Project project) throws SQLException;
 
     /**
+     * Lists all issues that are somehow related to the specified version.
+     *
+     * @param version the version
+     * @return a list of issues
+     * @throws SQLException on any kind of SQL error
+     */
+    List<Issue> list(Version version) throws SQLException;
+
+    /**
      * Saves an instances to the database.
      * Implementations of this DAO must guarantee that the generated ID is stored in the instance.
      *

mercurial