org.squashtest.tm.service.internal.repository
public interface TestAutomationProjectDao
| Modifier and Type | Method and Description |
|---|---|
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 projectId) |
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist a new
TestAutomationProject. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist a TestAutomationProject if really new, or return the existing instance
if not.
|
void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
TestAutomationProject. 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.newProject - NonUniqueEntityException - if the given server happen to exist already.org.squashtest.tm.domain.testautomation.TestAutomationProject uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
newProject - org.squashtest.tm.domain.testautomation.TestAutomationProject findById(Long projectId)
id - 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. Null attributes will be discarded before the comparison.
NonUniqueEntityException - if more than one match. Causes are either a not restrictive enough example... or a bug.Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.