|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.repository.hibernate.HibernateTestAutomationServerDao
@Repository public class HibernateTestAutomationServerDao
| Constructor Summary | |
|---|---|
HibernateTestAutomationServerDao()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateTestAutomationServerDao()
| Method Detail |
|---|
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)
TestAutomationServerDao
uniquePersist 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)
TestAutomationServerDao
findAllHostedProjects in interface TestAutomationServerDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||