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