com.atlassian.bamboo.project
Class ProjectHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.bamboo.persistence.BambooHibernateObjectDao
                  extended by com.atlassian.bamboo.project.ProjectHibernateDao
All Implemented Interfaces:
bucket.core.persistence.ObjectDao, BambooObjectDao, ProjectDao, org.springframework.beans.factory.InitializingBean

public class ProjectHibernateDao
extends BambooHibernateObjectDao
implements ProjectDao


Field Summary
 
Fields inherited from class com.atlassian.hibernate.HibernateObjectDao
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ProjectHibernateDao()
           
 
Method Summary
 void deleteProject(Project project)
           
 java.util.List findAll()
           
 java.util.Collection<Project> getAllProjectsMarkedForDeletion()
           
 java.lang.Class getPersistentClass()
           
 Project getProjectByKey(java.lang.String key)
           
 Project getProjectByName(java.lang.String projectName)
           
 boolean isExistingProjectKey(java.lang.String projectKey)
           
 boolean isExistingProjectName(java.lang.String projectName)
           
 void saveProject(Project project)
           
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
executeCountQuery, executeReturnLong, findById, findById
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData
 
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.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

ProjectHibernateDao

public ProjectHibernateDao()
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface bucket.core.persistence.ObjectDao

saveProject

public void saveProject(@NotNull
                        Project project)
Specified by:
saveProject in interface ProjectDao

deleteProject

public void deleteProject(@NotNull
                          Project project)
Specified by:
deleteProject in interface ProjectDao

isExistingProjectName

public boolean isExistingProjectName(@NotNull
                                     java.lang.String projectName)
Specified by:
isExistingProjectName in interface ProjectDao

isExistingProjectKey

public boolean isExistingProjectKey(@NotNull
                                    java.lang.String projectKey)
Specified by:
isExistingProjectKey in interface ProjectDao

getProjectByKey

public Project getProjectByKey(@NotNull
                               java.lang.String key)
Specified by:
getProjectByKey in interface ProjectDao

getProjectByName

public Project getProjectByName(@NotNull
                                java.lang.String projectName)
Specified by:
getProjectByName in interface ProjectDao

getAllProjectsMarkedForDeletion

@NotNull
public java.util.Collection<Project> getAllProjectsMarkedForDeletion()
Specified by:
getAllProjectsMarkedForDeletion in interface ProjectDao
Returns:
all Projects that are marked for deletion..

findAll

public java.util.List findAll()
Specified by:
findAll in interface bucket.core.persistence.ObjectDao
Overrides:
findAll in class com.atlassian.hibernate.HibernateObjectDao


Copyright © 2010 Atlassian. All Rights Reserved.