Package com.atlassian.bamboo.project
Interface ProjectDao
- All Superinterfaces:
BambooObjectDao<Project>
,BambooObjectWithOidDao<Project>
- All Known Implementing Classes:
ProjectHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptioncount()
void
Removes the given entity from the database@NotNull Collection<? extends Project>
findAll()
@NotNull Collection<? extends Project>
findAll
(int firstResult, int maxResults) findAllProjectsIds
(int startIndex, int offset) @Nullable Project
findById
(long id) @Nullable BambooEntityOid
getMaxProjectOid
(int serverKey) Returns the maxBambooEntityOid
that's currently in use ofBambooEntityType.PROJECT
type, with the given server key.getProjectByKey
(@NotNull String key) getProjectByName
(@NotNull String projectName) boolean
isExistingProjectKey
(@NotNull String projectKey) boolean
isExistingProjectName
(@NotNull String projectName) Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, deleteAll, findAll, findById, merge, save, saveAll
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectWithOidDao
findByOid
-
Method Details
-
findById
-
findAll
-
findAll
-
findAllProjectsIds
- Returns:
- ids of all projects (not marked for deletion)
-
findAllProjectsIds
- Returns:
- ids of all projects (not marked for deletion)
- Since:
- 10.0
-
count
Number count() -
countNonDeleted
Number countNonDeleted() -
delete
Description copied from interface:BambooObjectDao
Removes the given entity from the database- Specified by:
delete
in interfaceBambooObjectDao<Project>
- Parameters:
project
- entity to be removed
-
isExistingProjectName
-
isExistingProjectKey
-
getProjectByKey
-
getProjectByName
-
getNonEmptyProjects
- Returns:
- projects (not marked for deletion) with at least one top level plan (not marked for deletion)
-
getEmptyProjects
- Returns:
- projects (not marked for deletion) without top level plans (not marked for deletion)
-
getAllProjectsMarkedForDeletion
- Returns:
- all
Project
s that are marked for deletion..
-
getMaxProjectOid
Returns the maxBambooEntityOid
that's currently in use ofBambooEntityType.PROJECT
type, with the given server key. Returns null if no OIDs are in use of this type with the given server key.
-