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

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateAutomatedSuiteDao
All Implemented Interfaces:
AutomatedSuiteDao

@Repository
public class HibernateAutomatedSuiteDao
extends Object
implements AutomatedSuiteDao


Constructor Summary
HibernateAutomatedSuiteDao()
           
 
Method Summary
 org.squashtest.tm.domain.testautomation.AutomatedSuite createNewSuite()
           
protected  org.hibernate.Session currentSession()
           
 List<org.squashtest.tm.domain.testautomation.AutomatedSuite> findAll()
           
 List<org.squashtest.tm.domain.testautomation.AutomatedSuite> findAllById(Collection<String> ids)
           
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllCompletedExtenders(String suiteId)
          retrieve all the extenders of executions which had been ran their test automation servers, for a given AutomatedSuite
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtenders(String suiteId)
          retrieve all the AutomatedExecutionExtender that this suite is bound to.
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtendersByStatus(String suiteId, Collection<org.squashtest.tm.domain.execution.ExecutionStatus> statusList)
          retrieve all the extenders of executions which status is one of the supplied status, for a given AutomatedSuite
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtendersByStatus(String suiteId, org.squashtest.tm.domain.execution.ExecutionStatus... statusArray)
           
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllRunningExtenders(String suiteId)
          retrieve all the extenders of executions currently being run by their test automation servers, for a given AutomatedSuite
 Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllWaitingExtenders(String suiteId)
          retrieve all the extenders of executions currently waiting to be run by their test automation servers, for a given AutomatedSuite
 org.squashtest.tm.domain.testautomation.AutomatedSuite findById(String id)
           
 org.squashtest.tm.domain.testautomation.AutomatedSuite initDetachedSuite(String suiteId)
          Given the id of an AutomatedSuite, returns a detached instance with all dependencies initialized : AutomatedExecutionExtender, AutomatedTest, TestAutomationProject and TestAutomationServer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateAutomatedSuiteDao

public HibernateAutomatedSuiteDao()
Method Detail

currentSession

protected org.hibernate.Session currentSession()

createNewSuite

public org.squashtest.tm.domain.testautomation.AutomatedSuite createNewSuite()
Specified by:
createNewSuite in interface AutomatedSuiteDao

findById

public org.squashtest.tm.domain.testautomation.AutomatedSuite findById(String id)
Specified by:
findById in interface AutomatedSuiteDao

findAll

public List<org.squashtest.tm.domain.testautomation.AutomatedSuite> findAll()
Specified by:
findAll in interface AutomatedSuiteDao

findAllById

public List<org.squashtest.tm.domain.testautomation.AutomatedSuite> findAllById(Collection<String> ids)
Specified by:
findAllById in interface AutomatedSuiteDao

findAllExtenders

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtenders(String suiteId)
Description copied from interface: AutomatedSuiteDao
retrieve all the AutomatedExecutionExtender that this suite is bound to.

Specified by:
findAllExtenders in interface AutomatedSuiteDao
Returns:

findAllWaitingExtenders

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllWaitingExtenders(String suiteId)
Description copied from interface: AutomatedSuiteDao
retrieve all the extenders of executions currently waiting to be run by their test automation servers, for a given AutomatedSuite

Specified by:
findAllWaitingExtenders in interface AutomatedSuiteDao
Returns:

findAllRunningExtenders

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllRunningExtenders(String suiteId)
Description copied from interface: AutomatedSuiteDao
retrieve all the extenders of executions currently being run by their test automation servers, for a given AutomatedSuite

Specified by:
findAllRunningExtenders in interface AutomatedSuiteDao
Returns:

findAllCompletedExtenders

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllCompletedExtenders(String suiteId)
Description copied from interface: AutomatedSuiteDao
retrieve all the extenders of executions which had been ran their test automation servers, for a given AutomatedSuite

Specified by:
findAllCompletedExtenders in interface AutomatedSuiteDao
Returns:

findAllExtendersByStatus

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtendersByStatus(String suiteId,
                                                                                                               Collection<org.squashtest.tm.domain.execution.ExecutionStatus> statusList)
Description copied from interface: AutomatedSuiteDao
retrieve all the extenders of executions which status is one of the supplied status, for a given AutomatedSuite

Specified by:
findAllExtendersByStatus in interface AutomatedSuiteDao
Returns:

findAllExtendersByStatus

public Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> findAllExtendersByStatus(String suiteId,
                                                                                                               org.squashtest.tm.domain.execution.ExecutionStatus... statusArray)

initDetachedSuite

public org.squashtest.tm.domain.testautomation.AutomatedSuite initDetachedSuite(String suiteId)
Description copied from interface: AutomatedSuiteDao

Given the id of an AutomatedSuite, returns a detached instance with all dependencies initialized : AutomatedExecutionExtender, AutomatedTest, TestAutomationProject and TestAutomationServer.

Specified by:
initDetachedSuite in interface AutomatedSuiteDao
Returns:


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