org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateAttachmentDao

java.lang.Object
  extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<Attachment>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateAttachmentDao
All Implemented Interfaces:
AttachmentDao, EntityDao<Attachment>

@Repository
public class HibernateAttachmentDao
extends HibernateEntityDao<Attachment>
implements AttachmentDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateAttachmentDao()
           
 
Method Summary
 Set<Attachment> findAllAttachments(Long attachmentListId)
           
 List<Attachment> findAllAttachmentsFiltered(Long attachmentListId, CollectionSorting filter)
           
 Attachment findAttachmentWithContent(Long attachmentId)
           
 void removeAttachment(Long attachmentId)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAllByIdList, findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAllByIdList, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateAttachmentDao

public HibernateAttachmentDao()
Method Detail

findAttachmentWithContent

public Attachment findAttachmentWithContent(Long attachmentId)
Specified by:
findAttachmentWithContent in interface AttachmentDao

findAllAttachments

public Set<Attachment> findAllAttachments(Long attachmentListId)
Specified by:
findAllAttachments in interface AttachmentDao

removeAttachment

public void removeAttachment(Long attachmentId)
Specified by:
removeAttachment in interface AttachmentDao

findAllAttachmentsFiltered

public List<Attachment> findAllAttachmentsFiltered(Long attachmentListId,
                                                   CollectionSorting filter)
Specified by:
findAllAttachmentsFiltered in interface AttachmentDao


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.