org.squashtest.tm.service.internal.repository
Interface TestStepDao

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.testcase.TestStep>, GenericDao<org.squashtest.tm.domain.testcase.TestStep>
All Known Implementing Classes:
HibernateTestStepDao

public interface TestStepDao
extends EntityDao<org.squashtest.tm.domain.testcase.TestStep>


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
<STEP extends org.squashtest.tm.domain.testcase.TestStep>
void
persist(STEP testStep)
           
 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 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
 

Method Detail

removeById

void removeById(long testStepId)

persist

<STEP extends org.squashtest.tm.domain.testcase.TestStep> void persist(STEP testStep)

findListById

List<org.squashtest.tm.domain.testcase.TestStep> findListById(List<Long> testStepIds)

findPositionOfStep

int findPositionOfStep(Long testStepId)
returns the position (ie index) of a step within the list of step of its test case

Parameters:
testStepId - the id of the step
Returns:

findActionTestStepById

org.squashtest.tm.domain.testcase.ActionTestStep findActionTestStepById(long testStepId)

stringIsFoundInStepsOfTestCase

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.

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


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