Class CrowdDeletedEntityHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<CrowdDeletedEntity>
com.atlassian.bamboo.user.cleanup.CrowdDeletedEntityHibernateDao
- All Implemented Interfaces:
BambooObjectDao<CrowdDeletedEntity>
,CrowdDeletedEntityDao
,org.springframework.beans.factory.InitializingBean
public class CrowdDeletedEntityHibernateDao
extends BambooHibernateObjectDao<CrowdDeletedEntity>
implements CrowdDeletedEntityDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
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 class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
CrowdDeletedEntityHibernateDao
public CrowdDeletedEntityHibernateDao()
-
-
Method Details
-
findAll
Description copied from interface:CrowdDeletedEntityDao
List allentities
.- Specified by:
findAll
in interfaceCrowdDeletedEntityDao
-
countAll
public long countAll()Description copied from interface:CrowdDeletedEntityDao
Count allentities
.- Specified by:
countAll
in interfaceCrowdDeletedEntityDao
-
findByTypeAndName
@Nullable public @Nullable CrowdDeletedEntity findByTypeAndName(@NotNull @NotNull CrowdDeletedEntity.EntityType entityType, @NotNull @NotNull String entityName) Description copied from interface:CrowdDeletedEntityDao
- Specified by:
findByTypeAndName
in interfaceCrowdDeletedEntityDao
-
findAllDeletedBefore
@NotNull public @NotNull Collection<? extends CrowdDeletedEntity> findAllDeletedBefore(@NotNull @NotNull Date date, int limit) Description copied from interface:CrowdDeletedEntityDao
List allentities
which have been deleted before a givendate
.- Specified by:
findAllDeletedBefore
in interfaceCrowdDeletedEntityDao
- Parameters:
date
- date before which the entities were deletedlimit
- maximum number of results to fetch
-
scrollAll
public <E1 extends Throwable,E2 extends Throwable, void scrollAllE3 extends Throwable> (@NotNull BambooClosures.ThrowingX<CrowdDeletedEntity, E1, throws E1, E2, E3E2, E3> consumer) Description copied from interface:CrowdDeletedEntityDao
Scroll through allentities
applying the code fromconsumer
.- Specified by:
scrollAll
in interfaceCrowdDeletedEntityDao
- Throws:
E1 extends Throwable
E2 extends Throwable
E3 extends Throwable
-