|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<TestCase>
org.squashtest.csp.tm.internal.repository.hibernate.HibernateTestCaseDao
@Repository public class HibernateTestCaseDao
DAO for org.squashtest.csp.tm.domain.testcase.TestCase
| Field Summary |
|---|
| Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao |
|---|
entityType |
| Constructor Summary | |
|---|---|
HibernateTestCaseDao()
|
|
| Method Summary | |
|---|---|
long |
countByVerifiedRequirementVersion(long verifiedId)
|
long |
countCallingTestSteps(long testCaseId)
Counts the calling test steps of a test case |
List<TestCase> |
findAllByIdList(List<Long> testCasesIds)
|
List<TestCase> |
findAllByIdListNonOrdered(List<Long> testCasesIds)
|
List<TestCaseLibraryNode> |
findAllByNameContaining(String tokenInName,
boolean groupByProject)
Finds all TestCaseLibraryNode which name contains the given token. |
List<TestCase> |
findAllByRequirement(RequirementSearchCriteria criteria,
boolean isProjectOrdered)
Returns the test cases associated with at least a requirement that meets the criteria |
List<TestCase> |
findAllByVerifiedRequirementVersion(long verifiedId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting sorting)
Returns paged and sorted collection of test cases verifying the requirement version of given id. |
List<TestCase> |
findAllCallingTestCases(long testCaseId,
CollectionSorting sorting)
returns the ids of all the test cases having at least one call test step referencing the given test case. |
List<TestStep> |
findAllStepsByIdFiltered(long testCaseId,
CollectionFilter filter)
|
List<Long> |
findAllTestCasesIdsCalledByTestCase(long testCaseId)
Finds all the ids of the test cases called by a given test case. |
List<Long> |
findAllTestCasesIdsCalledByTestCases(List<Long> testCasesIds)
Finds all the ids of the test cases called by a given list of test cases. |
TestCase |
findAndInit(Long testCaseId)
|
TestCase |
findByIdWithInitializedSteps(long testCaseId)
|
List<Long> |
findCalledTestCaseOfCallSteps(List<Long> testStepsIds)
Returns the test cases ids first called by the call steps found in the list of given test steps ids. |
List<Long> |
findDistinctTestCasesIdsCalledByTestCase(Long testCaseId)
|
List<String> |
findNamesInFolderStartingWith(long folderId,
String nameStart)
|
List<String> |
findNamesInLibraryStartingWith(long libraryId,
String nameStart)
|
TestCase |
findTestCaseByTestStepId(long testStepId)
This method returns the test step's associated TestCase |
List<Long> |
findTestCasesHavingCaller(Collection<Long> testCasesIds)
Given a list of test case ids, returns a sublist of the test case ids. |
List<Object[]> |
findTestCasesHavingCallerDetails(Collection<Long> testCaseIds)
Given a list of test case ids, returns a list of the following structure : - caller id (null if no match), - caller name (null if no match), - called id, - called name Note that only first-level callers will be included if found, additional invokations will be needed to fetch all the hierarchy. |
List<ActionTestStep> |
getTestCaseSteps(Long testCaseId)
|
| Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao |
|---|
findById, flush, getIdPropertyName, persist, persist, remove |
| Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao |
|---|
currentSession, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, 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.csp.tm.internal.repository.EntityDao |
|---|
findById, flush, persist, persist, remove |
| Constructor Detail |
|---|
public HibernateTestCaseDao()
| Method Detail |
|---|
public TestCase findAndInit(Long testCaseId)
findAndInit in interface TestCaseDaopublic TestCase findByIdWithInitializedSteps(long testCaseId)
findByIdWithInitializedSteps in interface TestCaseDaopublic List<ActionTestStep> getTestCaseSteps(Long testCaseId)
getTestCaseSteps in interface TestCaseDaopublic List<TestCase> findAllByIdList(List<Long> testCasesIds)
findAllByIdList in interface EntityDao<TestCase>findAllByIdList in interface TestCaseDaofindAllByIdList in class HibernateEntityDao<TestCase>public List<TestCase> findAllByIdListNonOrdered(List<Long> testCasesIds)
findAllByIdListNonOrdered in interface TestCaseDao
public List<String> findNamesInFolderStartingWith(long folderId,
String nameStart)
findNamesInFolderStartingWith in interface TestCaseDao
public List<String> findNamesInLibraryStartingWith(long libraryId,
String nameStart)
findNamesInLibraryStartingWith in interface TestCaseDao
public List<TestStep> findAllStepsByIdFiltered(long testCaseId,
CollectionFilter filter)
findAllStepsByIdFiltered in interface TestCaseDao
public List<TestCaseLibraryNode> findAllByNameContaining(String tokenInName,
boolean groupByProject)
TestCaseDaoTestCaseLibraryNode which name contains the given token.
findAllByNameContaining in interface TestCaseDaopublic TestCase findTestCaseByTestStepId(long testStepId)
TestCaseDao
findTestCaseByTestStepId in interface TestCaseDaotestStepId - the test step id
public long countCallingTestSteps(long testCaseId)
TestCaseDao
countCallingTestSteps in interface TestCaseDaopublic List<Long> findTestCasesHavingCaller(Collection<Long> testCasesIds)
TestCaseDao
findTestCasesHavingCaller in interface TestCaseDaopublic List<Long> findAllTestCasesIdsCalledByTestCase(long testCaseId)
TestCaseDao
findAllTestCasesIdsCalledByTestCase in interface TestCaseDaopublic List<Long> findDistinctTestCasesIdsCalledByTestCase(Long testCaseId)
findDistinctTestCasesIdsCalledByTestCase in interface TestCaseDaopublic List<Long> findAllTestCasesIdsCalledByTestCases(List<Long> testCasesIds)
TestCaseDao
findAllTestCasesIdsCalledByTestCases in interface TestCaseDao
public List<TestCase> findAllCallingTestCases(long testCaseId,
CollectionSorting sorting)
TestCaseDao
findAllCallingTestCases in interface TestCaseDaotestCaseId - the id of the test case.sorting - the sorting attributes and the like.
public List<Object[]> findTestCasesHavingCallerDetails(Collection<Long> testCaseIds)
TestCaseDao
findTestCasesHavingCallerDetails in interface TestCaseDaotestCaseIds - the list of test case ids under inquiry.
public List<TestCase> findAllByRequirement(RequirementSearchCriteria criteria,
boolean isProjectOrdered)
TestCaseDao
findAllByRequirement in interface TestCaseDaocriteria - the requirement search criteriaisProjectOrdered - if set to true, the list of test case is ordered by project
public List<Long> findCalledTestCaseOfCallSteps(List<Long> testStepsIds)
TestCaseDao
findCalledTestCaseOfCallSteps in interface TestCaseDao
public List<TestCase> findAllByVerifiedRequirementVersion(long verifiedId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting sorting)
TestCaseDao
findAllByVerifiedRequirementVersion in interface TestCaseDaopublic long countByVerifiedRequirementVersion(long verifiedId)
countByVerifiedRequirementVersion in interface TestCaseDaoTestCaseDao.countByVerifiedRequirementVersion(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||