com.atlassian.bamboo.repository
Class RepositoryDefinitionHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RepositoryDataEntity>
com.atlassian.bamboo.repository.RepositoryDefinitionHibernateDao
- All Implemented Interfaces:
- BambooObjectDao<RepositoryDataEntity>, RepositoryDefinitionDao, org.springframework.beans.factory.InitializingBean
public class RepositoryDefinitionHibernateDao
- extends BambooHibernateObjectDao<RepositoryDataEntity>
- implements RepositoryDefinitionDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryDefinitionHibernateDao
public RepositoryDefinitionHibernateDao()
findById
@Nullable
public RepositoryDataEntityImpl findById(long id)
- Specified by:
findById
in interface RepositoryDefinitionDao
findRepositoryDefinitionsForPlan
public java.util.List<RepositoryDataEntity> findRepositoryDefinitionsForPlan(@NotNull
Plan plan)
- Specified by:
findRepositoryDefinitionsForPlan
in interface RepositoryDefinitionDao
- Returns:
getGlobalRepositoryDefinitions
public java.util.List<RepositoryDataEntity> getGlobalRepositoryDefinitions()
- Specified by:
getGlobalRepositoryDefinitions
in interface RepositoryDefinitionDao
getPrivateRepositoryDefinitionsByPlan
public java.util.Collection<RepositoryDataEntity> getPrivateRepositoryDefinitionsByPlan(Plan plan)
- Specified by:
getPrivateRepositoryDefinitionsByPlan
in interface RepositoryDefinitionDao
removeRepositoryIfUnused
public void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
- Specified by:
removeRepositoryIfUnused
in interface RepositoryDefinitionDao
removeUnusedRepositories
public void removeUnusedRepositories()
- Specified by:
removeUnusedRepositories
in interface RepositoryDefinitionDao
Copyright © 2012 Atlassian. All Rights Reserved.