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

changeset 124
ed2e7aef2a3e
parent 105
250c5cbb8276
child 128
947d0f6a6a83
     1.1 --- a/src/main/java/de/uapcore/lightpit/dao/IssueDao.java	Fri Oct 09 19:06:51 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/dao/IssueDao.java	Fri Oct 09 19:07:05 2020 +0200
     1.3 @@ -29,6 +29,7 @@
     1.4  package de.uapcore.lightpit.dao;
     1.5  
     1.6  import de.uapcore.lightpit.entities.Issue;
     1.7 +import de.uapcore.lightpit.entities.IssueComment;
     1.8  import de.uapcore.lightpit.entities.Project;
     1.9  import de.uapcore.lightpit.entities.Version;
    1.10  
    1.11 @@ -59,6 +60,24 @@
    1.12      List<Issue> list(Version version) throws SQLException;
    1.13  
    1.14      /**
    1.15 +     * Lists all comments for a specific issue in chronological order.
    1.16 +     *
    1.17 +     * @param issue the issue
    1.18 +     * @return the list of comments
    1.19 +     * @throws SQLException on any kind of SQL error
    1.20 +     */
    1.21 +    List<IssueComment> listComments(Issue issue) throws SQLException;
    1.22 +
    1.23 +    /**
    1.24 +     * Stores the specified comment in database.
    1.25 +     * This is an update-or-insert operation.
    1.26 +     *
    1.27 +     * @param comment the comment to save
    1.28 +     * @throws SQLException on any kind of SQL error
    1.29 +     */
    1.30 +    void saveComment(IssueComment comment) throws SQLException;
    1.31 +
    1.32 +    /**
    1.33       * Saves an instances to the database.
    1.34       * Implementations of this DAO must guarantee that the generated ID is stored in the instance.
    1.35       *

mercurial