org.squashtest.tm.service.internal.repository.hibernate
Class HibernateTestAutomationProjectDao
java.lang.Object
org.squashtest.tm.service.internal.repository.hibernate.HibernateTestAutomationProjectDao
- All Implemented Interfaces:
- TestAutomationProjectDao
@Repository
public class HibernateTestAutomationProjectDao
- extends Object
- implements TestAutomationProjectDao
|
Method Summary |
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 id)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateTestAutomationProjectDao
public HibernateTestAutomationProjectDao()
persist
public void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
- Description copied from interface:
TestAutomationProjectDao
- Will persist a new
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.
- Specified by:
persist in interface TestAutomationProjectDao
uniquePersist
public org.squashtest.tm.domain.testautomation.TestAutomationProject uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
- Description copied from interface:
TestAutomationProjectDao
- Will persist a TestAutomationProject if really new, or return the existing instance
if not. An instance exists if :
- argument's id is set and exists in base,
- argument's id is not set but matches one by content
In all cases it returns the persisted project : this returned instance should replace the one supplied as argument in the client code.
- Specified by:
uniquePersist in interface TestAutomationProjectDao
- Returns:
- a persistent version of that project.
findById
public org.squashtest.tm.domain.testautomation.TestAutomationProject findById(Long id)
- Specified by:
findById in interface TestAutomationProjectDao
- Returns:
findByExample
public org.squashtest.tm.domain.testautomation.TestAutomationProject findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
- Description copied from interface:
TestAutomationProjectDao
Given a detached (or even attached) TestAutomationProject example, will fetch a TestAutomationProject
having the same characteristics. Null attributes will be discarded before the comparison.
- Specified by:
findByExample in interface TestAutomationProjectDao
- Returns:
- a TestAutomation project if one was found, null if none was found.
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.