Package com.atlassian.bamboo.project
Interface ProjectDao
- All Superinterfaces:
BambooObjectDao<Project>,BambooObjectWithOidDao<Project>
- All Known Implementing Classes:
ProjectHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptioncount()voidRemoves 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 ProjectfindById(long id) @Nullable BambooEntityOidgetMaxProjectOid(int serverKey) Returns the maxBambooEntityOidthat's currently in use ofBambooEntityType.PROJECTtype, with the given server key.getProjectByKey(@NotNull String key) getProjectByName(@NotNull String projectName) booleanisExistingProjectKey(@NotNull String projectKey) booleanisExistingProjectName(@NotNull String projectName) Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, deleteAll, findAll, findById, merge, save, saveAllMethods 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:BambooObjectDaoRemoves the given entity from the database- Specified by:
deletein 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
Projects that are marked for deletion..
-
getMaxProjectOid
Returns the maxBambooEntityOidthat's currently in use ofBambooEntityType.PROJECTtype, with the given server key. Returns null if no OIDs are in use of this type with the given server key.
-