org.itracker.persistence.dao
Class IssueAttachmentDAOImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.itracker.persistence.dao.BaseHibernateDAOImpl<IssueAttachment>
org.itracker.persistence.dao.IssueAttachmentDAOImpl
- All Implemented Interfaces:
- BaseDAO<IssueAttachment>, IssueAttachmentDAO, org.springframework.beans.factory.InitializingBean
public class IssueAttachmentDAOImpl
- extends BaseHibernateDAOImpl<IssueAttachment>
- implements IssueAttachmentDAO
Persistence Hibernate POJO
- Author:
- mbae, ready
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueAttachmentDAOImpl
public IssueAttachmentDAOImpl()
findByPrimaryKey
public IssueAttachment findByPrimaryKey(Integer attachmentId)
- Specified by:
findByPrimaryKey in interface IssueAttachmentDAO
- Parameters:
attachmentId - system ID
- Returns:
- attachment instance or null if none exists
findByFileName
public IssueAttachment findByFileName(String fileName)
- Description copied from interface:
IssueAttachmentDAO
- Finds an attachment by the file name on the filesystem.
- Specified by:
findByFileName in interface IssueAttachmentDAO
- Returns:
- attachment instance or null if none exists
findAll
public List<IssueAttachment> findAll()
- Description copied from interface:
IssueAttachmentDAO
- Finds all Issue attachments.
- Specified by:
findAll in interface IssueAttachmentDAO
- Returns:
- list of all issue attachments, in unspecified order
findByIssue
public List<IssueAttachment> findByIssue(Integer issueId)
- Description copied from interface:
IssueAttachmentDAO
- Finds all attachments for an Issue.
- Specified by:
findByIssue in interface IssueAttachmentDAO
- Parameters:
issueId - system ID
- Returns:
- list of all issue attachments, in unspecified order
countAll
public Long countAll()
- Description copied from interface:
IssueAttachmentDAO
- Counts all Issue attachments.
- Specified by:
countAll in interface IssueAttachmentDAO
- Returns:
- count of all issue attachments in system
totalAttachmentsSize
public Long totalAttachmentsSize()
- Description copied from interface:
IssueAttachmentDAO
- Calculates the total Size of attachments in the system.
- Specified by:
totalAttachmentsSize in interface IssueAttachmentDAO
- Returns:
- total size of issue attachments
Copyright © 2002-2012 itracker. All Rights Reserved.