@Repository public class HibernateTestAutomationProjectDao extends Object implements TestAutomationProjectDao
| Constructor and Description |
|---|
HibernateTestAutomationProjectDao() |
| 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 id) |
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. |
public void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
TestAutomationProjectDaoTestAutomationProject.persist in interface TestAutomationProjectDaoTestAutomationProjectDao.persist(TestAutomationProject)public org.squashtest.tm.domain.testautomation.TestAutomationProject findById(Long id)
findById in interface TestAutomationProjectDaoTestAutomationProjectDao.findById(Long)public org.squashtest.tm.domain.testautomation.TestAutomationProject findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
TestAutomationProjectDao
Given a detached (or even attached) TestAutomationProject example, will fetch a
TestAutomationProject having the same characteristics. Null attributes will be discarded before the
comparison.
findByExample in interface TestAutomationProjectDaoTestAutomationProjectDao.findByExample(TestAutomationProject)public Collection<Long> findAllByTMProject(long tmProjectId)
findAllByTMProject in interface TestAutomationProjectDaopublic boolean haveExecutedTestsByIds(Collection<Long> projectIds)
TestAutomationProjectDaohaveExecutedTestsByIds in interface TestAutomationProjectDaoTestAutomationProjectDao.haveExecutedTestsByIds(Collection)public void deleteProjectsByIds(Collection<Long> projectIds)
TestAutomationProjectDaodeleteProjectsByIds in interface TestAutomationProjectDaoTestAutomationProjectDao.deleteProjectsByIds(Collection)public void deleteAllHostedProjects(long serverId)
TestAutomationProjectDao
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.
deleteAllHostedProjects in interface TestAutomationProjectDaoTestAutomationProjectDao.deleteAllHostedProjects(long)public List<org.squashtest.tm.domain.testautomation.TestAutomationProject> findAllHostedProjects(long serverId)
TestAutomationProjectDaofindAllHostedProjects in interface TestAutomationProjectDaoTestAutomationProjectDao.findAllHostedProjects(long)public List<Long> findHostedProjectIds(long serverId)
TestAutomationProjectDaofindHostedProjectIds in interface TestAutomationProjectDaoTestAutomationProjectDao.findHostedProjectIds(long)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.