public class PlanRepositoryLinkHibernateDao extends BambooHibernateObjectDao<PlanRepositoryLink> implements PlanRepositoryLinkDao
Constructor and Description |
---|
PlanRepositoryLinkHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
detachAllRepositoriesFromPlan(ImmutablePlan plan)
Remove all
PlanRepositoryLink defined for the . |
List<PlanIdentifier> |
getIdentifiersOfPlansUsingRepository(long repositoryId)
Get identifiers of Plans referencing a repository.
|
PlanRepositoryLink |
getPlanRepositoryLink(PlanIdentifier plan,
long repositoryId) |
List<PlanRepositoryLink> |
getPlanRepositoryLinks(ImmutablePlan plan) |
List<PlanRepositoryLink> |
getPlansUsingRepository(long repositoryId) |
void |
removeRepositoryFromPlan(PlanRepositoryLink planRepository)
Remove single
PlanRepositoryLink . |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
@NotNull public List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull ImmutablePlan plan)
getPlanRepositoryLinks
in interface PlanRepositoryLinkDao
Plan
sorted by PlanRepositoryLink.getPosition()
public List<PlanRepositoryLink> getPlansUsingRepository(long repositoryId)
getPlansUsingRepository
in interface PlanRepositoryLinkDao
Plan
that reference a Source Repositorypublic List<PlanIdentifier> getIdentifiersOfPlansUsingRepository(long repositoryId)
PlanRepositoryLinkDao
getIdentifiersOfPlansUsingRepository
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLink(@NotNull PlanIdentifier plan, long repositoryId)
getPlanRepositoryLink
in interface PlanRepositoryLinkDao
public void detachAllRepositoriesFromPlan(@NotNull ImmutablePlan plan)
PlanRepositoryLinkDao
PlanRepositoryLink
defined for the . Does not delete RepositoryDataEntity
objects.detachAllRepositoriesFromPlan
in interface PlanRepositoryLinkDao
public void removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
PlanRepositoryLinkDao
PlanRepositoryLink
. Does not delete RepositoryDataEntity
removeRepositoryFromPlan
in interface PlanRepositoryLinkDao
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.