com.atlassian.bamboo.project
Class ProjectHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<Project>
com.atlassian.bamboo.project.ProjectHibernateDao
- All Implemented Interfaces:
- BambooObjectDao<Project>, ProjectDao, org.springframework.beans.factory.InitializingBean
public class ProjectHibernateDao
- extends BambooHibernateObjectDao<Project>
- implements ProjectDao
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 |
ProjectHibernateDao
public ProjectHibernateDao()
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
Project
s that are marked for deletion..
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.