org.itracker.persistence.dao
Interface IssueAttachmentDAO

All Superinterfaces:
BaseDAO<IssueAttachment>
All Known Implementing Classes:
IssueAttachmentDAOImpl

public interface IssueAttachmentDAO
extends BaseDAO<IssueAttachment>


Method Summary
 Long countAll()
          Counts all Issue attachments.
 List<IssueAttachment> findAll()
          Finds all Issue attachments.
 IssueAttachment findByFileName(String fileName)
          Finds an attachment by the file name on the filesystem.
 List<IssueAttachment> findByIssue(Integer issueId)
          Finds all attachments for an Issue.
 IssueAttachment findByPrimaryKey(Integer attachmentId)
           
 Long totalAttachmentsSize()
          Calculates the total Size of attachments in the system.
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findByPrimaryKey

IssueAttachment findByPrimaryKey(Integer attachmentId)
Parameters:
attachmentId - system ID
Returns:
attachment instance or null if none exists

findByFileName

IssueAttachment findByFileName(String fileName)
Finds an attachment by the file name on the filesystem.

Parameters:
fileName -
Returns:
attachment instance or null if none exists

findAll

List<IssueAttachment> findAll()
Finds all Issue attachments.

Returns:
list of all issue attachments, in unspecified order

countAll

Long countAll()
Counts all Issue attachments.

Returns:
count of all issue attachments in system

totalAttachmentsSize

Long totalAttachmentsSize()
Calculates the total Size of attachments in the system.

Returns:
total size of issue attachments

findByIssue

List<IssueAttachment> findByIssue(Integer issueId)
Finds all attachments for an Issue.

Parameters:
issueId - system ID
Returns:
list of all issue attachments, in unspecified order


Copyright © 2002-2012 itracker. All Rights Reserved.