org.squashtest.tm.service.internal.repository
public interface TestAutomationServerDao
| 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. |
void persist(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationServer.server - : the server to persistNonUniqueEntityException - if the given server happen to exist already.List<org.squashtest.tm.domain.testautomation.TestAutomationServer> findAllOrderedByName()
TestAutomationServer in the database ordered by their name.TestAutomationServer ordered by their namelong countAll()
TestAutomationServer in the databaseTestAutomationServer in the databaseList<org.squashtest.tm.domain.testautomation.TestAutomationServer> findPagedServers(org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
boolean hasBoundProjects(long serverId)
TestAutomationServer is bound to at least one TestAutomationProjectserverId - : the id of the concernedTestAutomationServerorg.squashtest.tm.domain.testautomation.TestAutomationServer findById(Long id)
id - : the id of the entity to findnullorg.squashtest.tm.domain.testautomation.TestAutomationServer findByName(String serverName)
serverName - : the name of the entity to findnull.org.squashtest.tm.domain.testautomation.TestAutomationServer findByUrlAndLogin(URL url, String login)
url - login - void deleteServer(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 - the id of the TestAutomationServer to delete.Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.