@Repository public class HibernateTestStepDao extends HibernateEntityDao<org.squashtest.tm.domain.testcase.TestStep> implements TestStepDao
entityManager, entityType| Constructor and Description |
|---|
HibernateTestStepDao() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.testcase.ActionTestStep |
findActionTestStepById(long testStepId) |
List<org.squashtest.tm.domain.testcase.TestStep> |
findByIdOrderedByIndex(List<Long> testStepIds)
Find all
TestStep, ordered by their index in the test case. |
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.
|
findAll, findAllByIds, findById, findDescendantIds, getIdPropertyNamecurrentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllByIds, findByIdpublic void removeById(long testStepId)
removeById in interface TestStepDaopublic List<org.squashtest.tm.domain.testcase.TestStep> findListById(List<Long> testStepIds)
findListById in interface TestStepDaopublic int findPositionOfStep(Long testStepId)
TestStepDaofindPositionOfStep in interface TestStepDaotestStepId - the id of the steppublic org.squashtest.tm.domain.testcase.ActionTestStep findActionTestStepById(long testStepId)
findActionTestStepById in interface TestStepDaopublic boolean stringIsFoundInStepsOfTestCase(String stringToFind, long testCaseId)
TestStepDaostringIsFoundInStepsOfTestCase in interface TestStepDaostringToFind - : the string to look for in the steptestCaseId - : the id of the concerned TestCasestringIsFoundInStepsOfTestCase(String, long)public List<org.squashtest.tm.domain.testcase.TestStep> findByIdOrderedByIndex(List<Long> testStepIds)
TestStepDaoTestStep, ordered by their index in the test case. This method MUST be used for steps that belong to the
the same test case. Typical use case : select the steps in good order for a copy.findByIdOrderedByIndex in interface TestStepDaoCopyright © 2010–2017 Henix, henix.fr. All rights reserved.