org.squashtest.tm.service.internal.repository.hibernate
@Repository public class HibernateAutomatedTestDao extends Object implements AutomatedTestDao
| Constructor and Description |
|---|
HibernateAutomatedTestDao() |
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.testautomation.AutomatedTest> |
findAllByExtender(Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> extenders)
Same than
AutomatedTestDao.findAllByExtenderIds(List), but with the extenders themselves instead of their ids. |
List<org.squashtest.tm.domain.testautomation.AutomatedTest> |
findAllByExtenderIds(List<Long> extenderIds)
warning : return unique automated tests ( ie result.size() <= argument.size() )
|
org.squashtest.tm.domain.testautomation.AutomatedTest |
findByExample(org.squashtest.tm.domain.testautomation.AutomatedTest example)
Given a detached (or even attached)
AutomatedTest example, will fetch a AutomatedTest
having the same characteristics. |
org.squashtest.tm.domain.testautomation.AutomatedTest |
findById(Long testId) |
void |
persist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
Will persist a new
AutomatedTest. |
org.squashtest.tm.domain.testautomation.AutomatedTest |
uniquePersist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
Will persist a TestAutomationTest if really new, or return the existing instance
if not.
|
public void persist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
AutomatedTestDaoAutomatedTest. Note : each server must have different characteristics, more exactly each combination of
attributes is unique. Therefore if the object to be persisted already exists in the database an exception will be raised instead.persist in interface AutomatedTestDaopublic org.squashtest.tm.domain.testautomation.AutomatedTest uniquePersist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
AutomatedTestDaouniquePersist in interface AutomatedTestDaopublic org.squashtest.tm.domain.testautomation.AutomatedTest findById(Long testId)
findById in interface AutomatedTestDaopublic org.squashtest.tm.domain.testautomation.AutomatedTest findByExample(org.squashtest.tm.domain.testautomation.AutomatedTest example)
AutomatedTestDaoGiven a detached (or even attached) AutomatedTest example, will fetch a AutomatedTest
having the same characteristics. Null attributes will be discarded before the comparison.
findByExample in interface AutomatedTestDaopublic List<org.squashtest.tm.domain.testautomation.AutomatedTest> findAllByExtenderIds(List<Long> extenderIds)
AutomatedTestDaofindAllByExtenderIds in interface AutomatedTestDaopublic List<org.squashtest.tm.domain.testautomation.AutomatedTest> findAllByExtender(Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> extenders)
AutomatedTestDaoAutomatedTestDao.findAllByExtenderIds(List), but with the extenders themselves instead of their ids.findAllByExtender in interface AutomatedTestDaoCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.