@Repository public class HibernateMilestoneDao extends HibernateEntityDao<org.squashtest.tm.domain.milestone.Milestone> implements MilestoneDao
MilestoneDao.HolderConsumerentityType| Constructor and Description |
|---|
HibernateMilestoneDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindMilestoneToProjectRequirementVersions(long projectId,
long milestoneId) |
void |
bindMilestoneToProjectTestCases(long projectId,
long milestoneId) |
void |
checkLabelAvailability(String label) |
long |
countMilestones() |
long |
countMilestonesForUsers(List<Long> userIds) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestonesForTestCase(long testCaseId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesForCampaign(long campaignId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesForRequirementVersion(long versionId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesForTestCase(long testCaseId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesForUser(long userId) |
org.squashtest.tm.domain.milestone.Milestone |
findByName(String name) |
Collection<org.squashtest.tm.domain.campaign.Campaign> |
findCampaignsForMilestone(long milestoneId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForCampaign(long campaignId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForIteration(long iterationId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForRequirementVersion(long versionId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForTestSuite(long suiteId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findProjectMilestones(long projectId)
returns the milestones available for the given project
|
Collection<Long> |
findRequirementVersionIdsBoundToMilestones(Collection<Long> milestoneIds) |
Collection<Long> |
findTestCaseIdsBoundToMilestones(Collection<Long> milestoneIds) |
boolean |
isBoundToAtleastOneObject(long milestoneId) |
boolean |
isMilestoneBoundToACampainInProjects(Long milestoneId,
List<Long> projectIds) |
boolean |
isMilestoneBoundToOneObjectOfProject(Long milestoneId,
Long projectId) |
boolean |
isOneMilestoneAlreadyBindToAnotherRequirementVersion(List<Long> reqVIds,
List<Long> milestoneIds) |
boolean |
isTestCaseMilestoneDeletable(long testCaseId) |
boolean |
isTestCaseMilestoneModifiable(long testCaseId) |
void |
performBatchUpdate(MilestoneDao.HolderConsumer consumer)
Warning : This method may clear your session.
|
void |
synchronizeRequirementVersions(long source,
long target,
List<Long> projectIds) |
void |
synchronizeTestCases(long source,
long target,
List<Long> projectIds) |
void |
unbindAllObjects(long milestoneId)
Warning : This method may clear your session.
|
void |
unbindAllObjectsForProject(Long milestoneId,
Long projectId)
Warning : This method may clear your session.
|
void |
unbindAllObjectsForProjects(Long milestoneId,
List<Long> projectIds)
Warning : This method may clear your session.
|
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 long countMilestones()
countMilestones in interface MilestoneDaopublic void checkLabelAvailability(String label)
checkLabelAvailability in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesForTestCase(long testCaseId)
findAssociableMilestonesForTestCase in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findProjectMilestones(long projectId)
MilestoneDaofindProjectMilestones in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestonesForTestCase(long testCaseId)
findAllMilestonesForTestCase in interface MilestoneDaopublic boolean isTestCaseMilestoneDeletable(long testCaseId)
isTestCaseMilestoneDeletable in interface MilestoneDaopublic boolean isTestCaseMilestoneModifiable(long testCaseId)
isTestCaseMilestoneModifiable in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesForRequirementVersion(long versionId)
findAssociableMilestonesForRequirementVersion in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForRequirementVersion(long versionId)
findMilestonesForRequirementVersion in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesForCampaign(long campaignId)
findAssociableMilestonesForCampaign in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForCampaign(long campaignId)
findMilestonesForCampaign in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForIteration(long iterationId)
findMilestonesForIteration in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForTestSuite(long suiteId)
findMilestonesForTestSuite in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesForUser(long userId)
findAssociableMilestonesForUser in interface MilestoneDaopublic void bindMilestoneToProjectTestCases(long projectId,
long milestoneId)
bindMilestoneToProjectTestCases in interface MilestoneDaopublic void bindMilestoneToProjectRequirementVersions(long projectId,
long milestoneId)
bindMilestoneToProjectRequirementVersions in interface MilestoneDaopublic void synchronizeRequirementVersions(long source,
long target,
List<Long> projectIds)
synchronizeRequirementVersions in interface MilestoneDaopublic void synchronizeTestCases(long source,
long target,
List<Long> projectIds)
synchronizeTestCases in interface MilestoneDaopublic void performBatchUpdate(MilestoneDao.HolderConsumer consumer)
MilestoneDaoperformBatchUpdate in interface MilestoneDaoMilestoneDao.performBatchUpdate(org.squashtest.tm.service.internal.repository.MilestoneDao.HolderConsumer)public boolean isBoundToAtleastOneObject(long milestoneId)
isBoundToAtleastOneObject in interface MilestoneDaopublic void unbindAllObjectsForProject(Long milestoneId, Long projectId)
MilestoneDaounbindAllObjectsForProject in interface MilestoneDaopublic void unbindAllObjectsForProjects(Long milestoneId, List<Long> projectIds)
MilestoneDaounbindAllObjectsForProjects in interface MilestoneDaopublic void unbindAllObjects(long milestoneId)
MilestoneDaounbindAllObjects in interface MilestoneDaopublic org.squashtest.tm.domain.milestone.Milestone findByName(String name)
findByName in interface MilestoneDaopublic Collection<org.squashtest.tm.domain.campaign.Campaign> findCampaignsForMilestone(long milestoneId)
findCampaignsForMilestone in interface MilestoneDaopublic boolean isMilestoneBoundToACampainInProjects(Long milestoneId, List<Long> projectIds)
isMilestoneBoundToACampainInProjects in interface MilestoneDaopublic boolean isMilestoneBoundToOneObjectOfProject(Long milestoneId, Long projectId)
isMilestoneBoundToOneObjectOfProject in interface MilestoneDaopublic boolean isOneMilestoneAlreadyBindToAnotherRequirementVersion(List<Long> reqVIds, List<Long> milestoneIds)
isOneMilestoneAlreadyBindToAnotherRequirementVersion in interface MilestoneDaopublic long countMilestonesForUsers(List<Long> userIds)
countMilestonesForUsers in interface MilestoneDaopublic Collection<Long> findTestCaseIdsBoundToMilestones(Collection<Long> milestoneIds)
findTestCaseIdsBoundToMilestones in interface MilestoneDaopublic Collection<Long> findRequirementVersionIdsBoundToMilestones(Collection<Long> milestoneIds)
findRequirementVersionIdsBoundToMilestones in interface MilestoneDaoCopyright © 2010–2016 Henix, henix.fr. All rights reserved.