public class ProjectHibernateDao extends BambooHibernateObjectDao<Project> implements ProjectDao
Constructor and Description |
---|
ProjectHibernateDao() |
Modifier and Type | Method and Description |
---|---|
Number |
count() |
void |
delete(Project project)
Removes the given entity from the database
|
Collection<? extends Project> |
findAll() |
Project |
findById(long id) |
List<Project> |
getAllProjectsMarkedForDeletion() |
Project |
getProjectByKey(String key) |
Project |
getProjectByName(String projectName) |
boolean |
isExistingProjectKey(String projectKey) |
boolean |
isExistingProjectName(String projectName) |
countAll, countWithRestriction, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, save, saveAll
public Project findById(long id)
findById
in interface ProjectDao
public Collection<? extends Project> findAll()
findAll
in interface ProjectDao
public Number count()
count
in interface ProjectDao
public void delete(@NotNull Project project)
BambooObjectDao
delete
in interface BambooObjectDao<Project>
delete
in interface ProjectDao
delete
in class BambooHibernateObjectDao<Project>
project
- entity to be removedpublic boolean isExistingProjectName(@NotNull String projectName)
isExistingProjectName
in interface ProjectDao
public boolean isExistingProjectKey(@NotNull String projectKey)
isExistingProjectKey
in interface ProjectDao
public Project getProjectByKey(@NotNull String key)
getProjectByKey
in interface ProjectDao
public Project getProjectByName(@NotNull String projectName)
getProjectByName
in interface ProjectDao
@NotNull public List<Project> getAllProjectsMarkedForDeletion()
getAllProjectsMarkedForDeletion
in interface ProjectDao
Project
s that are marked for deletion..Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.