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

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDeletionDao
      extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateCampaignDeletionDao
All Implemented Interfaces:
CampaignDeletionDao, DeletionDao

@Repository
public class HibernateCampaignDeletionDao
extends HibernateDeletionDao
implements CampaignDeletionDao


Constructor Summary
HibernateCampaignDeletionDao()
           
 
Method Summary
 void removeEntities(List<Long> entityIds)
           
 List<Long>[] separateFolderFromCampaignIds(List<Long> originalIds)
          Given a list of CampaignLibraryNode ids, will tell which ones are folder ids and which ones are campaigns.
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDeletionDao
executeDeleteNamedQuery, executeDeleteSQLQuery, executeSelectNamedQuery, executeSelectSQLQuery, flush, getSession, removeAttachmentList, removeAttachmentsLists, 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.tm.service.internal.repository.DeletionDao
flush, removeAttachmentList, removeAttachmentsLists, removeEntity
 

Constructor Detail

HibernateCampaignDeletionDao

public HibernateCampaignDeletionDao()
Method Detail

removeEntities

public void removeEntities(List<Long> entityIds)
Specified by:
removeEntities in interface DeletionDao

separateFolderFromCampaignIds

public List<Long>[] separateFolderFromCampaignIds(List<Long> originalIds)
Description copied from interface: CampaignDeletionDao
Given a list of CampaignLibraryNode ids, will tell which ones are folder ids and which ones are campaigns.

Specified by:
separateFolderFromCampaignIds in interface CampaignDeletionDao
Parameters:
originalIds - the requirement library node ids we want to sort out.
Returns:
an array of list of ids : result[0] are the folder ids and result[1] are the campaign ids.


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