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

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

@Repository
public class HibernateTestCaseDeletionDao
extends HibernateDeletionDao
implements TestCaseDeletionDao


Constructor Summary
HibernateTestCaseDeletionDao()
           
 
Method Summary
 List<Long> findTestCaseAttachmentListIds(List<Long> testCaseIds)
           
 List<Long> findTestCaseFolderAttachmentListIds(List<Long> folderIds)
           
 List<Long> findTestStepAttachmentListIds(List<Long> testStepIds)
           
 List<Long> findTestSteps(List<Long> testCaseIds)
           
 void removeAllSteps(List<Long> testStepIds)
           
 void removeCampaignTestPlanInboundReferences(List<Long> testCaseIds)
           
 void removeEntities(List<Long> entityIds)
           
 void removeFromVerifyingTestCaseLists(List<Long> testCaseIds)
           
 void removeFromVerifyingTestStepsList(List<Long> testStepIds)
           
 void removeOrSetIterationTestPlanInboundReferencesToNull(List<Long> testCaseIds)
           
 List<Long>[] separateFolderFromTestCaseIds(List<Long> originalIds)
          Given a list of TestCaseLibraryNode ids, will tell which ones are folder ids and which ones are campaigns.
 void setExecStepInboundReferencesToNull(List<Long> testStepIds)
           
 void setExecutionInboundReferencesToNull(List<Long> testCaseIds)
           
 
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

HibernateTestCaseDeletionDao

public HibernateTestCaseDeletionDao()
Method Detail

removeEntities

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

removeAllSteps

public void removeAllSteps(List<Long> testStepIds)
Specified by:
removeAllSteps in interface TestCaseDeletionDao

findTestSteps

public List<Long> findTestSteps(List<Long> testCaseIds)
Specified by:
findTestSteps in interface TestCaseDeletionDao

findTestCaseAttachmentListIds

public List<Long> findTestCaseAttachmentListIds(List<Long> testCaseIds)
Specified by:
findTestCaseAttachmentListIds in interface TestCaseDeletionDao

findTestCaseFolderAttachmentListIds

public List<Long> findTestCaseFolderAttachmentListIds(List<Long> folderIds)
Specified by:
findTestCaseFolderAttachmentListIds in interface TestCaseDeletionDao

findTestStepAttachmentListIds

public List<Long> findTestStepAttachmentListIds(List<Long> testStepIds)
Specified by:
findTestStepAttachmentListIds in interface TestCaseDeletionDao

removeCampaignTestPlanInboundReferences

public void removeCampaignTestPlanInboundReferences(List<Long> testCaseIds)
Specified by:
removeCampaignTestPlanInboundReferences in interface TestCaseDeletionDao

removeOrSetIterationTestPlanInboundReferencesToNull

public void removeOrSetIterationTestPlanInboundReferencesToNull(List<Long> testCaseIds)
Specified by:
removeOrSetIterationTestPlanInboundReferencesToNull in interface TestCaseDeletionDao

setExecStepInboundReferencesToNull

public void setExecStepInboundReferencesToNull(List<Long> testStepIds)
Specified by:
setExecStepInboundReferencesToNull in interface TestCaseDeletionDao

setExecutionInboundReferencesToNull

public void setExecutionInboundReferencesToNull(List<Long> testCaseIds)
Specified by:
setExecutionInboundReferencesToNull in interface TestCaseDeletionDao

removeFromVerifyingTestCaseLists

public void removeFromVerifyingTestCaseLists(List<Long> testCaseIds)
Specified by:
removeFromVerifyingTestCaseLists in interface TestCaseDeletionDao

removeFromVerifyingTestStepsList

public void removeFromVerifyingTestStepsList(List<Long> testStepIds)
Specified by:
removeFromVerifyingTestStepsList in interface TestCaseDeletionDao

separateFolderFromTestCaseIds

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

Specified by:
separateFolderFromTestCaseIds in interface TestCaseDeletionDao
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 test case ids.


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