org.itracker.persistence.dao
Interface IssueActivityDAO

All Superinterfaces:
BaseDAO<IssueActivity>
All Known Implementing Classes:
IssueActivityDAOImpl

public interface IssueActivityDAO
extends BaseDAO<IssueActivity>


Method Summary
 IssueActivity findById(Integer activityId)
          Finds the activity with the given ID.
 List<IssueActivity> findByIssueId(Integer issueId)
          Finds all activities of a given Issue.
 List<IssueActivity> findByIssueIdAndNotification(Integer issueId, boolean notificationSent)
          Finds all activities for an Issue with the given notification status.
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findById

IssueActivity findById(Integer activityId)
Finds the activity with the given ID.

Parameters:
activityId - system ID of the activity to return
Returns:
activity instance of null if none exists

findByIssueId

List<IssueActivity> findByIssueId(Integer issueId)
Finds all activities of a given Issue. TODO : rename to findByIssue()

Parameters:
issueId - system ID of the issue of which to retrieve activities
Returns:
list of activities of the issue, in unspecified order

findByIssueIdAndNotification

List<IssueActivity> findByIssueIdAndNotification(Integer issueId,
                                                 boolean notificationSent)
Finds all activities for an Issue with the given notification status.

Parameters:
issueId - system ID of the issue of which to retrieve activities
notificationSent - whether to return activities for which a notification has been sent or not


Copyright © 2002-2012 itracker. All Rights Reserved.