public class EnvironmentRepositoryLinkHibernateDao extends BambooHibernateObjectDao<EnvironmentRepositoryLink> implements EnvironmentRepositoryLinkDao
Constructor and Description |
---|
EnvironmentRepositoryLinkHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
detachAllRepositoriesFromEnvironment(EnvironmentDeletionAdapter deletionAdapter)
Remove all
PlanRepositoryLink defined for the Environment . |
void |
detachAllRepositoriesFromEnvironment(InternalEnvironment environment)
Remove all
PlanRepositoryLink defined for the Environment . |
EnvironmentRepositoryLink |
getEnvironmentRepositoryLink(InternalEnvironment environment,
long repositoryId) |
List<EnvironmentRepositoryLink> |
getEnvironmentRepositoryLinks(InternalEnvironment environment) |
List<EnvironmentRepositoryLink> |
getEnvironmentRepositoryLinksForRepository(long repositoryId) |
List<MutableEnvironment> |
getEnvironmentsUsingRepository(long repositoryId) |
void |
removeRepositoryFromEnvironment(EnvironmentRepositoryLink environmentRepositoryLink)
Remove single
PlanRepositoryLink . |
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 repositoryCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.