|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
org.squashtest.tm.service.internal.repository.hibernate.HibernateEntityDao<org.squashtest.tm.domain.testcase.TestCase>
org.squashtest.tm.service.internal.repository.hibernate.HibernateTestCaseDao
@Repository(value="CustomTestCaseDao") public class HibernateTestCaseDao
DAO for org.squashtest.tm.domain.testcase.TestCase
| Field Summary |
|---|
| Fields inherited from class org.squashtest.tm.service.internal.repository.hibernate.HibernateDao |
|---|
entityType |
| Constructor Summary | |
|---|---|
HibernateTestCaseDao()
|
|
| Method Summary | |
|---|---|
long |
countByVerifiedRequirementVersion(long verifiedId)
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
findAllByNameContaining(String tokenInName,
boolean groupByProject)
Finds all TestCaseLibraryNode which name contains the given token. |
List<org.squashtest.tm.domain.testcase.TestCase> |
findAllByRequirement(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria,
boolean isProjectOrdered)
Returns the test cases associated with at least a requirement that meets the criteria |
List<org.squashtest.tm.domain.testcase.TestCase> |
findAllByVerifiedRequirementVersion(long verifiedId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
Returns paged and sorted collection of test cases verifying the requirement version of given id. |
List<org.squashtest.tm.domain.testcase.TestCase> |
findAllCallingTestCases(long calleeId)
return all test cases having at least one call test step referencing the given test case. |
List<org.squashtest.tm.domain.testcase.TestCase> |
findAllCallingTestCases(long testCaseId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
returns the test cases having at least one call test step referencing the given test case. |
List<org.squashtest.tm.domain.execution.Execution> |
findAllExecutionByTestCase(Long tcId)
Returns all the execution associated to this test-case |
List<org.squashtest.tm.domain.testcase.TestCase> |
findAllLinkedToIteration(List<Long> nodeIds)
Return all test-cases that are linked to an iteration-test-plan-item |
List<org.squashtest.tm.domain.testcase.TestStep> |
findAllStepsByIdFiltered(long testCaseId,
org.squashtest.tm.core.foundation.collection.Paging filter)
|
List<Long> |
findAllTestCaseIdsByNodeIds(Collection<Long> nodeIds)
|
List<Long> |
findAllTestCasesIdsByLibrary(long libraryId)
Return all test case ids contained by the library of the given id. |
List<Long> |
findAllTestCasesIdsCalledByTestCases(List<Long> testCasesIds)
Finds all the ids of the test cases called by a given list of test cases. |
List<Long> |
findAllTestCasesIdsCallingTestCases(List<Long> testCasesIds)
|
org.squashtest.tm.domain.testcase.TestCase |
findAndInit(Long testCaseId)
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
findBySearchCriteria(org.squashtest.tm.domain.testcase.TestCaseSearchCriteria criteria)
|
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. |
org.squashtest.tm.domain.testcase.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<org.squashtest.tm.domain.testcase.ExportTestCaseData> |
findTestCaseToExportFromLibrary(List<Long> projectIds)
|
List<org.squashtest.tm.domain.testcase.ExportTestCaseData> |
findTestCaseToExportFromNodes(List<Long> params)
|
List<org.squashtest.tm.domain.testcase.TestCase> |
findUnsortedAllByVerifiedRequirementVersion(long requirementVersionId)
Returns unsorted collection of test cases verifying the requirement version of given id. |
void |
persistTestCaseAndSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
That method exists because hibernate doesn't quite respect the cascade persist for a set of test case and steps |
void |
safePersist(org.squashtest.tm.domain.testcase.TestCase testCase)
if the transient test case has steps, will invoke CustomTestCaseDao.persistTestCaseAndSteps(TestCase) else, will just save
it. |
| 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.EntityDao |
|---|
findAll, findAllByIds, findById |
| Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao |
|---|
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll |
| Constructor Detail |
|---|
public HibernateTestCaseDao()
| Method Detail |
|---|
public void safePersist(org.squashtest.tm.domain.testcase.TestCase testCase)
CustomTestCaseDaoCustomTestCaseDao.persistTestCaseAndSteps(TestCase) else, will just save
it.
safePersist in interface CustomTestCaseDaopublic void persistTestCaseAndSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
CustomTestCaseDao
persistTestCaseAndSteps in interface CustomTestCaseDaopublic org.squashtest.tm.domain.testcase.TestCase findAndInit(Long testCaseId)
findAndInit in interface CustomTestCaseDao
public List<org.squashtest.tm.domain.testcase.TestStep> findAllStepsByIdFiltered(long testCaseId,
org.squashtest.tm.core.foundation.collection.Paging filter)
findAllStepsByIdFiltered in interface CustomTestCaseDao
public List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> findAllByNameContaining(String tokenInName,
boolean groupByProject)
CustomTestCaseDaoTestCaseLibraryNode which name contains the given token.
findAllByNameContaining in interface CustomTestCaseDaopublic org.squashtest.tm.domain.testcase.TestCase findTestCaseByTestStepId(long testStepId)
CustomTestCaseDao
findTestCaseByTestStepId in interface CustomTestCaseDaotestStepId - the test step id
public List<Long> findTestCasesHavingCaller(Collection<Long> testCasesIds)
CustomTestCaseDao
findTestCasesHavingCaller in interface CustomTestCaseDaopublic List<Long> findAllTestCasesIdsCalledByTestCases(List<Long> testCasesIds)
CustomTestCaseDao
findAllTestCasesIdsCalledByTestCases in interface CustomTestCaseDaopublic List<Long> findAllTestCasesIdsCallingTestCases(List<Long> testCasesIds)
findAllTestCasesIdsCallingTestCases in interface CustomTestCaseDao
public List<org.squashtest.tm.domain.testcase.TestCase> findAllCallingTestCases(long testCaseId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
CustomTestCaseDao
findAllCallingTestCases in interface CustomTestCaseDaotestCaseId - the id of the test case.sorting - the sorting attributes and the like.
public List<org.squashtest.tm.domain.testcase.TestCase> findAllCallingTestCases(long calleeId)
CustomTestCaseDao
findAllCallingTestCases in interface CustomTestCaseDaocalleeId - the id of the called test case
public List<Object[]> findTestCasesHavingCallerDetails(Collection<Long> testCaseIds)
CustomTestCaseDao
findTestCasesHavingCallerDetails in interface CustomTestCaseDaotestCaseIds - the list of test case ids under inquiry.
public List<org.squashtest.tm.domain.testcase.TestCase> findAllByRequirement(org.squashtest.tm.domain.requirement.RequirementSearchCriteria criteria,
boolean isProjectOrdered)
CustomTestCaseDao
findAllByRequirement in interface CustomTestCaseDaocriteria - the requirement search criteriaisProjectOrdered - if set to true, the list of test case is ordered by project
public List<Long> findCalledTestCaseOfCallSteps(List<Long> testStepsIds)
CustomTestCaseDao
findCalledTestCaseOfCallSteps in interface CustomTestCaseDao
public List<org.squashtest.tm.domain.testcase.TestCase> findAllByVerifiedRequirementVersion(long verifiedId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
CustomTestCaseDao
findAllByVerifiedRequirementVersion in interface CustomTestCaseDaopublic long countByVerifiedRequirementVersion(long verifiedId)
countByVerifiedRequirementVersion in interface CustomTestCaseDaoCustomTestCaseDao.countByVerifiedRequirementVersion(long)public List<org.squashtest.tm.domain.testcase.TestCase> findUnsortedAllByVerifiedRequirementVersion(long requirementVersionId)
CustomTestCaseDao
findUnsortedAllByVerifiedRequirementVersion in interface CustomTestCaseDaopublic List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> findBySearchCriteria(org.squashtest.tm.domain.testcase.TestCaseSearchCriteria criteria)
findBySearchCriteria in interface CustomTestCaseDaopublic List<org.squashtest.tm.domain.execution.Execution> findAllExecutionByTestCase(Long tcId)
CustomTestCaseDao
findAllExecutionByTestCase in interface CustomTestCaseDaopublic List<org.squashtest.tm.domain.testcase.ExportTestCaseData> findTestCaseToExportFromLibrary(List<Long> projectIds)
findTestCaseToExportFromLibrary in interface CustomTestCaseDaopublic List<org.squashtest.tm.domain.testcase.ExportTestCaseData> findTestCaseToExportFromNodes(List<Long> params)
findTestCaseToExportFromNodes in interface CustomTestCaseDaopublic List<Long> findAllTestCaseIdsByNodeIds(Collection<Long> nodeIds)
findAllTestCaseIdsByNodeIds in interface CustomTestCaseDaopublic List<Long> findAllTestCasesIdsByLibrary(long libraryId)
CustomTestCaseDao
findAllTestCasesIdsByLibrary in interface CustomTestCaseDaopublic List<org.squashtest.tm.domain.testcase.TestCase> findAllLinkedToIteration(List<Long> nodeIds)
CustomTestCaseDao
findAllLinkedToIteration in interface CustomTestCaseDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||