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

changeset 86
0a658e53177c
parent 75
33b6843fdf8a
child 105
250c5cbb8276
equal deleted inserted replaced
85:3d16ad54b3dc 86:0a658e53177c
28 */ 28 */
29 package de.uapcore.lightpit.dao; 29 package de.uapcore.lightpit.dao;
30 30
31 import de.uapcore.lightpit.entities.Issue; 31 import de.uapcore.lightpit.entities.Issue;
32 import de.uapcore.lightpit.entities.Project; 32 import de.uapcore.lightpit.entities.Project;
33 import de.uapcore.lightpit.entities.Version;
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 IssueDao extends GenericDao<Issue> { 38 public interface IssueDao extends GenericDao<Issue> {
44 * @param project the project 45 * @param project the project
45 * @return a list of issues 46 * @return a list of issues
46 * @throws SQLException on any kind of SQL error 47 * @throws SQLException on any kind of SQL error
47 */ 48 */
48 List<Issue> list(Project project) throws SQLException; 49 List<Issue> list(Project project) throws SQLException;
50
51 /**
52 * Lists all issues that are somehow related to the specified version.
53 *
54 * @param version the version
55 * @return a list of issues
56 * @throws SQLException on any kind of SQL error
57 */
58 List<Issue> list(Version version) throws SQLException;
49 59
50 /** 60 /**
51 * Saves an instances to the database. 61 * Saves an instances to the database.
52 * Implementations of this DAO must guarantee that the generated ID is stored in the instance. 62 * Implementations of this DAO must guarantee that the generated ID is stored in the instance.
53 * 63 *

mercurial