public interface ProjectDao extends BambooObjectWithOidDao<Project>
Modifier and Type | Method and Description |
---|---|
Number |
count() |
Number |
countNonDeleted() |
void |
delete(Project project)
Removes the given entity from the database
|
Collection<? extends Project> |
findAll() |
Collection<? extends Project> |
findAll(int firstResult,
int maxResults) |
Project |
findById(long id) |
List<Project> |
getAllProjectsMarkedForDeletion() |
List<Project> |
getEmptyProjects() |
BambooEntityOid |
getMaxProjectOid(int serverKey)
Returns the max
BambooEntityOid that's currently in use of BambooEntityType.PROJECT type, with
the given server key. |
List<Project> |
getNonEmptyProjects() |
Project |
getProjectByKey(String key) |
Project |
getProjectByName(String projectName) |
boolean |
isExistingProjectKey(String projectKey) |
boolean |
isExistingProjectName(String projectName) |
findByOid
countAll, countWithRestriction, deleteAll, findAll, findById, merge, save, saveAll
@Nullable Project findById(long id)
@NotNull Collection<? extends Project> findAll()
@NotNull Collection<? extends Project> findAll(int firstResult, int maxResults)
Number count()
Number countNonDeleted()
void delete(@NotNull Project project)
BambooObjectDao
delete
in interface BambooObjectDao<Project>
project
- entity to be removedboolean isExistingProjectName(@NotNull String projectName)
boolean isExistingProjectKey(@NotNull String projectKey)
@NotNull List<Project> getNonEmptyProjects()
@NotNull List<Project> getEmptyProjects()
@NotNull List<Project> getAllProjectsMarkedForDeletion()
Project
s that are marked for deletion..@Nullable BambooEntityOid getMaxProjectOid(int serverKey)
BambooEntityOid
that's currently in use of BambooEntityType.PROJECT
type, with
the given server key.
Returns null if no OIDs are in use of this type with the given server key.Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.