com.atlassian.bamboo.project
Interface ProjectDao

All Superinterfaces:
BambooObjectDao<Project>
All Known Implementing Classes:
ProjectHibernateDao

public interface ProjectDao
extends BambooObjectDao<Project>


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 interface com.atlassian.bamboo.persistence3.BambooObjectDao
deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findById

Project findById(long id)

findAll

java.util.Collection<? extends Project> findAll()

delete

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

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

isExistingProjectName

boolean isExistingProjectName(@NotNull
                              java.lang.String projectName)

isExistingProjectKey

boolean isExistingProjectKey(@NotNull
                             java.lang.String projectKey)

getProjectByKey

Project getProjectByKey(@NotNull
                        java.lang.String key)

getProjectByName

Project getProjectByName(@NotNull
                         java.lang.String projectName)

getAllProjectsMarkedForDeletion

@NotNull
java.util.List<Project> getAllProjectsMarkedForDeletion()
Returns:
all Projects that are marked for deletion..


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