public class EnvironmentRepositoryLinkHibernateDao extends BambooHibernateObjectDao<EnvironmentRepositoryLink> implements EnvironmentRepositoryLinkDao
Constructor and Description |
---|
EnvironmentRepositoryLinkHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
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
public EnvironmentRepositoryLinkHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
@NotNull public List<EnvironmentRepositoryLink> getEnvironmentRepositoryLinks(@NotNull InternalEnvironment environment)
getEnvironmentRepositoryLinks
in interface EnvironmentRepositoryLinkDao
Environment
sorted by EnvironmentRepositoryLink.getPosition()
@NotNull public List<EnvironmentRepositoryLink> getEnvironmentRepositoryLinksForRepository(long repositoryId)
getEnvironmentRepositoryLinksForRepository
in interface EnvironmentRepositoryLinkDao
@Nullable public EnvironmentRepositoryLink getEnvironmentRepositoryLink(@NotNull InternalEnvironment environment, long repositoryId)
getEnvironmentRepositoryLink
in interface EnvironmentRepositoryLinkDao
public void detachAllRepositoriesFromEnvironment(@NotNull InternalEnvironment environment)
EnvironmentRepositoryLinkDao
PlanRepositoryLink
defined for the Environment
. Does not delete RepositoryDataEntity
objects.detachAllRepositoriesFromEnvironment
in interface EnvironmentRepositoryLinkDao
public void detachAllRepositoriesFromEnvironment(@NotNull EnvironmentDeletionAdapter deletionAdapter)
EnvironmentRepositoryLinkDao
PlanRepositoryLink
defined for the Environment
. Does not delete RepositoryDataEntity
objects.detachAllRepositoriesFromEnvironment
in interface EnvironmentRepositoryLinkDao
public void removeRepositoryFromEnvironment(@NotNull EnvironmentRepositoryLink environmentRepositoryLink)
EnvironmentRepositoryLinkDao
PlanRepositoryLink
. Does not delete RepositoryDataEntity
removeRepositoryFromEnvironment
in interface EnvironmentRepositoryLinkDao
@NotNull public List<MutableEnvironment> getEnvironmentsUsingRepository(long repositoryId)
getEnvironmentsUsingRepository
in interface EnvironmentRepositoryLinkDao
repositoryId
- repository idEnvironment
s using given repositorypublic EnvironmentRepositoryLink linkRepositoryToEnvironment(MutableEnvironment environment, RepositoryDataEntity repositoryDataEntity, int index)
EnvironmentRepositoryLinkDao
linkRepositoryToEnvironment
in interface EnvironmentRepositoryLinkDao
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.