Interface CrowdDeletedEntityDao
- All Superinterfaces:
BambooObjectDao<CrowdDeletedEntity>
- All Known Implementing Classes:
CrowdDeletedEntityHibernateDao
DAO for accessing
CrowdDeletedEntity
instances.-
Method Summary
Modifier and TypeMethodDescriptionlong
countAll()
Count allentities
.@NotNull Collection<? extends CrowdDeletedEntity>
findAll()
List allentities
.@NotNull Collection<? extends CrowdDeletedEntity>
findAllDeletedBefore
(@NotNull Date date, int limit) List allentities
which have been deleted before a givendate
.@Nullable CrowdDeletedEntity
findByTypeAndName
(@NotNull CrowdDeletedEntity.EntityType entityType, @NotNull String entityName) scrollAll
(BambooClosures.ThrowingX<CrowdDeletedEntity, E1, E2, E3> consumer) Scroll through allentities
applying the code fromconsumer
.Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Method Details
-
findAll
List allentities
. -
countAll
long countAll()Count allentities
. -
findByTypeAndName
@Nullable @Nullable CrowdDeletedEntity findByTypeAndName(@NotNull @NotNull CrowdDeletedEntity.EntityType entityType, @NotNull @NotNull String entityName) -
findAllDeletedBefore
@NotNull @NotNull Collection<? extends CrowdDeletedEntity> findAllDeletedBefore(@NotNull @NotNull Date date, int limit) List allentities
which have been deleted before a givendate
.- Parameters:
date
- date before which the entities were deletedlimit
- maximum number of results to fetch
-
scrollAll
<E1 extends Throwable,E2 extends Throwable, void scrollAllE3 extends Throwable> (@NotNull BambooClosures.ThrowingX<CrowdDeletedEntity, E1, throws E1, E2, E3E2, E3> consumer) Scroll through allentities
applying the code fromconsumer
.
-