public interface TestAutomationProjectDao
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllHostedProjects(long serverId)
Warning : When using this method there is a risk that your Hibernate beans are not up to
date.
|
void |
deleteProjectsByIds(Collection<Long> projectIds)
When removing one or several TestAutomationProject : the test cases referencing their scripts are unbound, the
AutomatedExecutionExtender have their resultURL and automatedTest to null, then all the AutomatedTests are
removed, and finally the projects.
|
Collection<Long> |
findAllByTMProject(long tmProjectId) |
List<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
findAllHostedProjects(long serverId)
return all the projects that the given server hosts.
|
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
Given a detached (or even attached)
TestAutomationProject example, will fetch a
TestAutomationProject having the same characteristics. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findById(Long projectId) |
List<Long> |
findHostedProjectIds(long serverId)
return all the ids of the projects that the given server hosts.
|
boolean |
haveExecutedTestsByIds(Collection<Long> projectIds)
return true if at least one of these projects have been executed, false otherwise
|
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist a new
TestAutomationProject. |
void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
TestAutomationProject.newProject - NonUniqueEntityException - if the given server happen to exist already.org.squashtest.tm.domain.testautomation.TestAutomationProject findById(Long projectId)
id - org.squashtest.tm.domain.testautomation.TestAutomationProject findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
Given a detached (or even attached) TestAutomationProject example, will fetch a
TestAutomationProject 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.Collection<Long> findAllByTMProject(long tmProjectId)
boolean haveExecutedTestsByIds(Collection<Long> projectIds)
projectIds - void deleteProjectsByIds(Collection<Long> projectIds)
projectIds - void deleteAllHostedProjects(long serverId)
Warning : When using this method there is a risk that your Hibernate beans are not up to
date. Use Session.clear() and Session.refresh(Object) to make sure your they are.
serverId - List<org.squashtest.tm.domain.testautomation.TestAutomationProject> findAllHostedProjects(long serverId)
serverId - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.