com.atlassian.bamboo.repository
Class RepositoryDefinitionHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RepositoryDataEntity>
                  extended by com.atlassian.bamboo.repository.RepositoryDefinitionHibernateDao
All Implemented Interfaces:
BambooObjectDao<RepositoryDataEntity>, RepositoryDefinitionDao, org.springframework.beans.factory.InitializingBean

public class RepositoryDefinitionHibernateDao
extends BambooHibernateObjectDao<RepositoryDataEntity>
implements RepositoryDefinitionDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
RepositoryDefinitionHibernateDao()
           
 
Method Summary
 java.util.Collection<? extends RepositoryDataEntity> findAll()
           
 RepositoryDataEntityImpl findById(long id)
           
 java.util.List<RepositoryDataEntity> findRepositoriesByPluginKey(java.lang.String pluginKey)
           
 java.util.List<RepositoryDataEntity> getGlobalRepositoryDefinitions()
           
 java.util.Collection<RepositoryDataEntity> getPrivateRepositoryDefinitionsByPlan(Plan plan)
           
 void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
           
 void removeUnusedRepositories()
           
 
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
delete, deleteAll, execute, executeCountQuery, executeFind, executeReturnLong, findAll, findById, save, saveAll
 
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
 
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
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Constructor Detail

RepositoryDefinitionHibernateDao

public RepositoryDefinitionHibernateDao()
Method Detail

findById

@Nullable
public RepositoryDataEntityImpl findById(long id)
Specified by:
findById in interface RepositoryDefinitionDao

findAll

@NotNull
public java.util.Collection<? extends RepositoryDataEntity> findAll()
Specified by:
findAll in interface RepositoryDefinitionDao

findRepositoriesByPluginKey

@NotNull
public java.util.List<RepositoryDataEntity> findRepositoriesByPluginKey(@NotNull
                                                                                java.lang.String pluginKey)
Specified by:
findRepositoriesByPluginKey in interface RepositoryDefinitionDao

getGlobalRepositoryDefinitions

@NotNull
public java.util.List<RepositoryDataEntity> getGlobalRepositoryDefinitions()
Specified by:
getGlobalRepositoryDefinitions in interface RepositoryDefinitionDao

getPrivateRepositoryDefinitionsByPlan

@NotNull
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.