org.squashtest.tm.service.internal.repository.hibernate
Class HibernateDeletionDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDeletionDao
All Implemented Interfaces:
DeletionDao
Direct Known Subclasses:
HibernateCampaignDeletionDao, HibernateCustomFieldDeletionDao, HibernateRequirementDeletionDao, HibernateTestCaseDeletionDao

public abstract class HibernateDeletionDao
extends Object
implements DeletionDao


Constructor Summary
HibernateDeletionDao()
           
 
Method Summary
protected  void executeDeleteNamedQuery(String namedQuery, String paramName, Collection<Long> ids)
           
protected  void executeDeleteSQLQuery(String queryString, String paramName, Collection<Long> ids)
           
protected
<R> List<R>
executeSelectNamedQuery(String namedQuery, String paramName, Collection<Long> ids)
           
protected
<R> List<R>
executeSelectSQLQuery(String queryString, String paramName, Collection<Long> ids)
           
 void flush()
           
protected  org.hibernate.Session getSession()
           
 void removeAttachmentList(org.squashtest.tm.domain.attachment.AttachmentList list)
           
 void removeAttachmentsLists(List<Long> attachmentListIds)
           
 void removeEntity(Object entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.DeletionDao
removeEntities
 

Constructor Detail

HibernateDeletionDao

public HibernateDeletionDao()
Method Detail

getSession

protected org.hibernate.Session getSession()

removeAttachmentsLists

public void removeAttachmentsLists(List<Long> attachmentListIds)
Specified by:
removeAttachmentsLists in interface DeletionDao

removeEntity

public void removeEntity(Object entity)
Specified by:
removeEntity in interface DeletionDao

removeAttachmentList

public void removeAttachmentList(org.squashtest.tm.domain.attachment.AttachmentList list)
Specified by:
removeAttachmentList in interface DeletionDao

flush

public void flush()
Specified by:
flush in interface DeletionDao

executeDeleteNamedQuery

protected void executeDeleteNamedQuery(String namedQuery,
                                       String paramName,
                                       Collection<Long> ids)

executeSelectNamedQuery

protected <R> List<R> executeSelectNamedQuery(String namedQuery,
                                              String paramName,
                                              Collection<Long> ids)

executeDeleteSQLQuery

protected void executeDeleteSQLQuery(String queryString,
                                     String paramName,
                                     Collection<Long> ids)

executeSelectSQLQuery

protected <R> List<R> executeSelectSQLQuery(String queryString,
                                            String paramName,
                                            Collection<Long> ids)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.