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.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<Project>
                  extended by com.atlassian.bamboo.project.ProjectHibernateDao
All Implemented Interfaces:
BambooObjectDao<Project>, ProjectDao, org.springframework.beans.factory.InitializingBean

public class ProjectHibernateDao
extends BambooHibernateObjectDao<Project>
implements ProjectDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ProjectHibernateDao()
           
 
Method Summary
 void delete(Project project)
          Removes the given entity from the database
 java.util.Collection<? extends Project> findAll()
           
 Project findById(long id)
           
 java.util.List<Project> getAllProjectsMarkedForDeletion()
           
 Project getProjectByKey(java.lang.String key)
           
 Project getProjectByName(java.lang.String projectName)
           
 boolean isExistingProjectKey(java.lang.String projectKey)
           
 boolean isExistingProjectName(java.lang.String projectName)
           
 
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
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
deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Constructor Detail

ProjectHibernateDao

public ProjectHibernateDao()
Method Detail

findById

public Project findById(long id)
Specified by:
findById in interface ProjectDao

findAll

public java.util.Collection<? extends Project> findAll()
Specified by:
findAll in interface ProjectDao

delete

public void delete(@NotNull
                   Project project)
Description copied from interface: BambooObjectDao
Removes the given entity from the database

Specified by:
delete in interface BambooObjectDao<Project>
Specified by:
delete in interface ProjectDao
Overrides:
delete in class BambooHibernateObjectDao<Project>
Parameters:
project - entity to be removed

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.List<Project> getAllProjectsMarkedForDeletion()
Specified by:
getAllProjectsMarkedForDeletion in interface ProjectDao
Returns:
all Projects that are marked for deletion..


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.