org.squashtest.tm.service.internal.repository.hibernate
@Repository public class HibernateTestAutomationServerDao extends Object implements TestAutomationServerDao
| Constructor and Description |
|---|
HibernateTestAutomationServerDao() |
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
findAllHostedProjects(long serverId)
return all the projects that the given server hosts.
|
org.squashtest.tm.domain.testautomation.TestAutomationServer |
findByExample(org.squashtest.tm.domain.testautomation.TestAutomationServer example)
Given a detached (or even attached)
TestAutomationServer example, will fetch a TestAutomationServer
having the same characteristics. |
org.squashtest.tm.domain.testautomation.TestAutomationServer |
findById(Long id) |
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
Will persist a new
TestAutomationServer. |
org.squashtest.tm.domain.testautomation.TestAutomationServer |
uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
Will persist a TestAutomationServer if really new, or return the existing instance
if not.
|
public void persist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationServerDaoTestAutomationServer. 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 TestAutomationServerDaopublic org.squashtest.tm.domain.testautomation.TestAutomationServer uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationServerDaouniquePersist in interface TestAutomationServerDaopublic org.squashtest.tm.domain.testautomation.TestAutomationServer findById(Long id)
findById in interface TestAutomationServerDaopublic org.squashtest.tm.domain.testautomation.TestAutomationServer findByExample(org.squashtest.tm.domain.testautomation.TestAutomationServer example)
TestAutomationServerDaoGiven a detached (or even attached) TestAutomationServer example, will fetch a TestAutomationServer
having the same characteristics. Null attributes will be discarded before the comparison.
findByExample in interface TestAutomationServerDaopublic List<org.squashtest.tm.domain.testautomation.TestAutomationProject> findAllHostedProjects(long serverId)
TestAutomationServerDaofindAllHostedProjects in interface TestAutomationServerDaoCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.