org.squashtest.tm.service.internal.repository.hibernate
Class HibernateTestStepDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao<org.squashtest.tm.domain.testcase.TestStep>
          extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateTestStepDao
All Implemented Interfaces:
EntityDao<org.squashtest.tm.domain.testcase.TestStep>, GenericDao<org.squashtest.tm.domain.testcase.TestStep>, TestStepDao

@Repository
public class HibernateTestStepDao
extends HibernateEntityDao<org.squashtest.tm.domain.testcase.TestStep>
implements TestStepDao


Field Summary
 
Fields inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateTestStepDao()
           
 
Method Summary
 org.squashtest.tm.domain.testcase.ActionTestStep findActionTestStepById(long testStepId)
           
 List<org.squashtest.tm.domain.testcase.TestStep> findListById(List<Long> testStepIds)
           
 int findPositionOfStep(Long testStepId)
          returns the position (ie index) of a step within the list of step of its test case
 void removeById(long testStepId)
           
 boolean stringIsFoundInStepsOfTestCase(String stringToFind, long testCaseId)
          Will check if the string appears at least once in at least one step of the test case matching the given id.
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao
collectFromMapList, collectFromMapList, collectFromMapListToSet, collectFromMapListToSet, findAll, findAllByIds, findById, findDescendantIds, findSorted, findSorted, getIdPropertyName
 
Methods inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao
clearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.TestStepDao
persist
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Constructor Detail

HibernateTestStepDao

public HibernateTestStepDao()
Method Detail

removeById

public void removeById(long testStepId)
Specified by:
removeById in interface TestStepDao

findListById

public List<org.squashtest.tm.domain.testcase.TestStep> findListById(List<Long> testStepIds)
Specified by:
findListById in interface TestStepDao

findPositionOfStep

public int findPositionOfStep(Long testStepId)
Description copied from interface: TestStepDao
returns the position (ie index) of a step within the list of step of its test case

Specified by:
findPositionOfStep in interface TestStepDao
Parameters:
testStepId - the id of the step
Returns:

findActionTestStepById

public org.squashtest.tm.domain.testcase.ActionTestStep findActionTestStepById(long testStepId)
Specified by:
findActionTestStepById in interface TestStepDao

stringIsFoundInStepsOfTestCase

public boolean stringIsFoundInStepsOfTestCase(String stringToFind,
                                              long testCaseId)
Description copied from interface: TestStepDao
Will check if the string appears at least once in at least one step of the test case matching the given id.

Specified by:
stringIsFoundInStepsOfTestCase in interface TestStepDao
Parameters:
stringToFind - : the string to look for in the step
testCaseId - : the id of the concerned TestCase
Returns:
true if the string is found in one step of the concerned test case
See Also:
stringIsFoundInStepsOfTestCase(String, long)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.