public class CrowdDeletedEntityHibernateDao extends BambooHibernateObjectDao<CrowdDeletedEntity> implements CrowdDeletedEntityDao
Constructor and Description |
---|
CrowdDeletedEntityHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countAll()
Count all
entities . |
Collection<? extends CrowdDeletedEntity> |
findAll()
List all
entities . |
Collection<? extends CrowdDeletedEntity> |
findAllDeletedBefore(Date date,
int limit)
List all
entities which have been deleted before a given date . |
CrowdDeletedEntity |
findByTypeAndName(CrowdDeletedEntity.EntityType entityType,
String entityName)
|
<E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
scrollAll(BambooClosures.ThrowingX<CrowdDeletedEntity,E1,E2,E3> consumer)
Scroll through all
entities applying the code from consumer . |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull public Collection<? extends CrowdDeletedEntity> findAll()
CrowdDeletedEntityDao
entities
.findAll
in interface CrowdDeletedEntityDao
public long countAll()
CrowdDeletedEntityDao
entities
.countAll
in interface CrowdDeletedEntityDao
@Nullable public CrowdDeletedEntity findByTypeAndName(@NotNull CrowdDeletedEntity.EntityType entityType, @NotNull String entityName)
CrowdDeletedEntityDao
findByTypeAndName
in interface CrowdDeletedEntityDao
@NotNull public Collection<? extends CrowdDeletedEntity> findAllDeletedBefore(@NotNull Date date, int limit)
CrowdDeletedEntityDao
entities
which have been deleted before a given date
.findAllDeletedBefore
in interface CrowdDeletedEntityDao
date
- date before which the entities were deletedlimit
- maximum number of results to fetchpublic <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void scrollAll(@NotNull BambooClosures.ThrowingX<CrowdDeletedEntity,E1,E2,E3> consumer) throws E1 extends Throwable, E2 extends Throwable, E3 extends Throwable
CrowdDeletedEntityDao
entities
applying the code from consumer
.scrollAll
in interface CrowdDeletedEntityDao
E1 extends Throwable
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.