org.squashtest.tm.service.internal.repository.hibernate
@Repository public class HibernateIssueDao extends HibernateEntityDao<org.squashtest.tm.domain.bugtracker.Issue> implements IssueDao
entityType| Constructor and Description |
|---|
HibernateIssueDao() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
countIssuesfromExecutionAndExecutionSteps(List<Long> executionsIds,
List<Long> executionStepsIds)
Will count all Issues from the given executions and execution-steps concerned by the active bug-tracker for each
execution/execution-step's project.
|
Integer |
countIssuesfromExecutionSteps(List<Long> executionStepsIds)
Self explanatory
|
Integer |
countIssuesfromIssueList(Collection<Long> issueListIds,
Long bugTrackerId)
Will count the total number of issues related to the given IssueList, for the given bugtracker
|
Integer |
countIssuesfromIssueList(List<Long> issueListIds)
Will count the total number of issues related to the given IssueList.
|
List<org.squashtest.tm.domain.bugtracker.Issue> |
findAllForIteration(Long id)
Will find all issues declared in the iteration of the given id.
|
List<org.squashtest.tm.domain.bugtracker.Issue> |
findAllForTestSuite(Long id)
Will find all issues declared in the test suite of the given id.
|
org.squashtest.tm.domain.bugtracker.IssueDetector |
findIssueDetectorByIssue(long id)
Will return the Execution or the ExecutionStep that holds the Issue of the given id.
|
protected <X extends org.squashtest.tm.domain.bugtracker.IssueDetector> |
findIssueOwnerOfClass(List<Long> issueIds,
Class<X> concreteClass) |
List<Object[]> |
findSortedIssuesFromExecutionAndExecutionSteps(List<Long> executionsIds,
List<Long> executionStepsIds,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Will find all issues belonging to the executions/executionSteps of the given ids, and, return a list of
Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]
The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker active for the given execution/executionSteps's project's bug-tracker are retained. |
List<Object[]> |
findSortedIssuesFromIssuesLists(Collection<Long> issueListIds,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter,
Long bugtrackerId)
Will find all issues belonging to the issue-lists of the given ids, and, return a list of
Object[] that have the following structure : [IssueList.id, Issue.remoteIssueId, Issue.id]
The issues are also filtered over the bug-tracker parameter: only issues linked to the bug-tracker of the given id are retained. |
org.squashtest.tm.domain.testcase.TestCase |
findTestCaseRelatedToIssue(long id) |
collectFromMapList, collectFromMapList, collectFromMapListToSet, collectFromMapListToSet, findAll, findAllByIds, findById, findDescendantIds, findSorted, findSorted, getIdPropertyNameclearFromCache, clearFromCache, currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, executeUpdateListQuery, flush, getEntity, persist, persist, persistEntity, remove, removeAll, removeEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllByIds, findByIdclearFromCache, clearFromCache, flush, persist, persist, remove, removeAllpublic Integer countIssuesfromIssueList(List<Long> issueListIds)
IssueDaocountIssuesfromIssueList in interface IssueDaoissueListIds - the id of the issue lists.IssueDao.countIssuesfromIssueList(java.util.List)public Integer countIssuesfromIssueList(Collection<Long> issueListIds, Long bugTrackerId)
IssueDaocountIssuesfromIssueList in interface IssueDaoissueListIds - the id of the issue lists.bugTrackerId - the id of the bug-tracker we are filtering onIssueDao.countIssuesfromIssueList(java.util.Collection,
java.lang.Long)public List<Object[]> findSortedIssuesFromIssuesLists(Collection<Long> issueListIds, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter, Long bugtrackerId)
IssueDaoObject[] that have the following structure : [IssueList.id, Issue.remoteIssueId, Issue.id]
findSortedIssuesFromIssuesLists in interface IssueDaosorter - : will sort and filter the result setObject[] which have the following structure [IssueList.id, Issue.remoteIssueId, Issue.id]IssueDao#findSortedIssuesFromIssuesLists(List, PagingAndSorting, Long)protected <X extends org.squashtest.tm.domain.bugtracker.IssueDetector> List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.Issue>> findIssueOwnerOfClass(List<Long> issueIds, Class<X> concreteClass)
public List<Object[]> findSortedIssuesFromExecutionAndExecutionSteps(List<Long> executionsIds, List<Long> executionStepsIds, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
IssueDaoObject[] that have the following structure : [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]
findSortedIssuesFromExecutionAndExecutionSteps in interface IssueDaoexecutionsIds - : ids of executions we will extract Issues fromexecutionStepsIds - : ids of executionSteps we will extract Issues fromsorter - : holds the sort parameters for the queryObject[] which have the following structure [IssueList.id, Issue.remoteIssueId , Issue.bugtracker.id]IssueDao#findSortedIssuesFromExecutionAndExecutionSteps(List, List, PagingAndSorting)public Integer countIssuesfromExecutionAndExecutionSteps(List<Long> executionsIds, List<Long> executionStepsIds)
IssueDaocountIssuesfromExecutionAndExecutionSteps in interface IssueDaopublic Integer countIssuesfromExecutionSteps(List<Long> executionStepsIds)
IssueDaocountIssuesfromExecutionSteps in interface IssueDaopublic List<org.squashtest.tm.domain.bugtracker.Issue> findAllForIteration(Long id)
IssueDaofindAllForIteration in interface IssueDaoid - : the id of the concerned IterationIssuespublic List<org.squashtest.tm.domain.bugtracker.Issue> findAllForTestSuite(Long id)
IssueDaofindAllForTestSuite in interface IssueDaoid - : the id of the concerned TestSuiteIssuespublic org.squashtest.tm.domain.bugtracker.IssueDetector findIssueDetectorByIssue(long id)
IssueDaofindIssueDetectorByIssue in interface IssueDaoid - : the id of the Issue we want the owner of.null.public org.squashtest.tm.domain.testcase.TestCase findTestCaseRelatedToIssue(long id)
findTestCaseRelatedToIssue in interface IssueDaoCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.