public class PlanRepositoryLinkHibernateDao extends BambooHibernateObjectDao<PlanRepositoryLink> implements PlanRepositoryLinkDao
Constructor and Description |
---|
PlanRepositoryLinkHibernateDao() |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull public List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull ImmutablePlan plan)
getPlanRepositoryLinks
in interface PlanRepositoryLinkDao
Plan
sorted by PlanRepositoryLink.getPosition()
@NotNull public List<PlanRepositoryLink> getPlanRepositoryLinks(@NotNull PlanIdentifier 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 List<PlanIdentifier> getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren(long repositoryId)
PlanRepositoryLinkDao
getIdentifiersOfPlansUsingRepositoryOrItsDirectChildren
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLink(@NotNull PlanIdentifier plan, long repositoryId)
getPlanRepositoryLink
in interface PlanRepositoryLinkDao
public PlanRepositoryLink getPlanRepositoryLinkByName(@NotNull PlanIdentifier plan, @NotNull String repositoryName)
getPlanRepositoryLinkByName
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 removeLinksByParentRepositoryId(long parentId)
PlanRepositoryLinkDao
removeLinksByParentRepositoryId
in interface PlanRepositoryLinkDao
public void removeRepositoryFromPlan(@NotNull PlanRepositoryLink planRepository)
PlanRepositoryLinkDao
PlanRepositoryLink
. Does not delete RepositoryDataEntity
removeRepositoryFromPlan
in interface PlanRepositoryLinkDao
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.