org.squashtest.tm.service.internal.repository
public interface AutomatedTestDao
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.testautomation.AutomatedTest> |
findAllByExtender(Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> extenders)
Same than
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.
|
void persist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
AutomatedTest. 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.newTest - NonUniqueEntityException - if the given server happen to exist already.org.squashtest.tm.domain.testautomation.AutomatedTest uniquePersist(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
newTest - org.squashtest.tm.domain.testautomation.AutomatedTest findById(Long testId)
id - 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. Null attributes will be discarded before the comparison.
NonUniqueEntityException - if more than one match. Causes are either a not restrictive enough example... or a bug.List<org.squashtest.tm.domain.testautomation.AutomatedTest> findAllByExtenderIds(List<Long> extenderIds)
extenderIds - List<org.squashtest.tm.domain.testautomation.AutomatedTest> findAllByExtender(Collection<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender> extenders)
findAllByExtenderIds(List), but with the extenders themselves instead of their ids.extenders - Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.