org.itracker.persistence.dao
Class IssueAttachmentDAOImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.itracker.persistence.dao.BaseHibernateDAOImpl<IssueAttachment>
              extended by 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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
IssueAttachmentDAOImpl()
           
 
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 class org.itracker.persistence.dao.BaseHibernateDAOImpl
delete, detach, merge, refresh, save, saveOrUpdate
 
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
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Constructor Detail

IssueAttachmentDAOImpl

public IssueAttachmentDAOImpl()
Method Detail

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.