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) |
List<Long> |
findAllProjectsIds() |
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) |
findByOidcountAll, 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)
@NotNull List<Long> findAllProjectsIds()
Number count()
Number countNonDeleted()
void delete(@NotNull
Project project)
BambooObjectDaodelete 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()
Projects 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.