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> |
getEnvironmentsUsingRepository(long repositoryId) |
void |
removeRepositoryFromEnvironment(EnvironmentRepositoryLink environmentRepositoryLink)
Remove single
PlanRepositoryLink . |
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, 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, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
public EnvironmentRepositoryLinkHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
@NotNull public List<EnvironmentRepositoryLink> getEnvironmentRepositoryLinks(@NotNull InternalEnvironment environment)
getEnvironmentRepositoryLinks
in interface EnvironmentRepositoryLinkDao
Environment
sorted by EnvironmentRepositoryLink.getPosition()
@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
public List<EnvironmentRepositoryLink> getEnvironmentsUsingRepository(long repositoryId)
getEnvironmentsUsingRepository
in interface EnvironmentRepositoryLinkDao
Environment
that reference a Source RepositoryCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.