@Repository public class HibernateTestAutomationServerDao extends Object implements TestAutomationServerDao
| Constructor and Description |
|---|
HibernateTestAutomationServerDao() |
| Modifier and Type | Method and Description |
|---|---|
long |
countAll()
Will count all occurrences of
TestAutomationServer in the database |
void |
deleteServer(long serverId)
Will delete the given TestAutomationServer and dereference it from TM Projects.
|
List<org.squashtest.tm.domain.testautomation.TestAutomationServer> |
findAllOrderedByName()
Will find all occurrences of
TestAutomationServer in the database ordered by their name. |
org.squashtest.tm.domain.testautomation.TestAutomationServer |
findById(Long id)
Simple find entity by id.
|
org.squashtest.tm.domain.testautomation.TestAutomationServer |
findByName(String serverName)
Find the TestAutomationServer by it's name.
|
org.squashtest.tm.domain.testautomation.TestAutomationServer |
findByUrlAndLogin(URL url,
String login)
Find the TestAutomationServer using its URL and the login used to log on it.
|
List<org.squashtest.tm.domain.testautomation.TestAutomationServer> |
findPagedServers(org.squashtest.tm.core.foundation.collection.PagingAndSorting pas) |
boolean |
hasBoundProjects(long serverId)
Checks if the
TestAutomationServer is bound to at least one TestAutomationProject |
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
Will persist a new
TestAutomationServer. |
public void persist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationServerDaoTestAutomationServer.persist in interface TestAutomationServerDaoserver - : the server to persistTestAutomationServerDao.persist(TestAutomationServer)public List<org.squashtest.tm.domain.testautomation.TestAutomationServer> findAllOrderedByName()
TestAutomationServerDaoTestAutomationServer in the database ordered by their name.findAllOrderedByName in interface TestAutomationServerDaoTestAutomationServer ordered by their nameTestAutomationServerDao.findAllOrderedByName()public long countAll()
TestAutomationServerDaoTestAutomationServer in the databasecountAll in interface TestAutomationServerDaoTestAutomationServer in the databaseTestAutomationServerDao.countAll()public List<org.squashtest.tm.domain.testautomation.TestAutomationServer> findPagedServers(org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
findPagedServers in interface TestAutomationServerDaoTestAutomationServerDao.findPagedServers(PagingAndSorting)public boolean hasBoundProjects(long serverId)
TestAutomationServerDaoTestAutomationServer is bound to at least one TestAutomationProjecthasBoundProjects in interface TestAutomationServerDaoserverId - : the id of the concernedTestAutomationServerTestAutomationServerDao.hasBoundProjects(long)public org.squashtest.tm.domain.testautomation.TestAutomationServer findById(Long id)
TestAutomationServerDaofindById in interface TestAutomationServerDaoid - : the id of the entity to findnullTestAutomationServerDao.findById(Long)public org.squashtest.tm.domain.testautomation.TestAutomationServer findByName(String serverName)
TestAutomationServerDaofindByName in interface TestAutomationServerDaoserverName - : the name of the entity to findnull.TestAutomationServerDao.findByName(String)public org.squashtest.tm.domain.testautomation.TestAutomationServer findByUrlAndLogin(URL url, String login)
TestAutomationServerDaofindByUrlAndLogin in interface TestAutomationServerDaopublic void deleteServer(long serverId)
TestAutomationServerDao
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.
deleteServer in interface TestAutomationServerDaoserverId - the id of the TestAutomationServer to delete.TestAutomationServerDao.deleteServer(long)Copyright © 2010-2015 Henix, henix.fr. All Rights Reserved.