Class HibernateAlertEntityDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
-
- com.atlassian.confluence.internal.diagnostics.persistence.dao.hibernate.HibernateAlertEntityDao
-
- All Implemented Interfaces:
ObjectDao,VersionedObjectDao,ObjectDaoInternal,VersionedObjectDaoInternal,com.atlassian.diagnostics.internal.dao.AlertEntityDao,org.springframework.beans.factory.InitializingBean
public class HibernateAlertEntityDao extends ConfluenceHibernateObjectDao implements com.atlassian.diagnostics.internal.dao.AlertEntityDao
- Since:
- 6.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHibernateAlertEntityDao.SatiableConsumer<T>A consumer that accepts a single input argument and returns a boolean indicating if further inputs are wanted.-
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
HibernateObjectDao.Cacheability
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
-
-
Constructor Summary
Constructors Constructor Description HibernateAlertEntityDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria)Set<String>findAllComponentIds()Map<String,com.atlassian.diagnostics.Severity>findAllIssueIds()Set<String>findAllNodeNames()Set<String>findAllPluginKeys()@Nullable com.atlassian.diagnostics.internal.dao.AlertEntitygetById(long id)ClassgetPersistentClass()Gets the type ofEntityObjectthis Dao works with.@NonNull com.atlassian.diagnostics.internal.dao.AlertEntitysave(@NonNull com.atlassian.diagnostics.Alert alert)voidstreamAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertEntity> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)voidstreamByIds(@NonNull Collection<Long> ids, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertEntity> rowCallback)voidstreamMetrics(@NonNull com.atlassian.diagnostics.AlertCriteria criteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertMetric> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)voidstreamMinimalAlerts(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.MinimalAlertEntity> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
-
-
-
Method Detail
-
deleteAll
public void deleteAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria)
- Specified by:
deleteAllin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllComponentIds
public Set<String> findAllComponentIds()
- Specified by:
findAllComponentIdsin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllIssueIds
public Map<String,com.atlassian.diagnostics.Severity> findAllIssueIds()
- Specified by:
findAllIssueIdsin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllNodeNames
public Set<String> findAllNodeNames()
- Specified by:
findAllNodeNamesin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllPluginKeys
public Set<String> findAllPluginKeys()
- Specified by:
findAllPluginKeysin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
getById
public @Nullable com.atlassian.diagnostics.internal.dao.AlertEntity getById(long id)
- Specified by:
getByIdin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
getPersistentClass
public Class getPersistentClass()
Description copied from interface:ObjectDaoInternalGets the type ofEntityObjectthis Dao works with.- Specified by:
getPersistentClassin interfaceObjectDao- Specified by:
getPersistentClassin interfaceObjectDaoInternal- Returns:
- the type
-
save
public @NonNull com.atlassian.diagnostics.internal.dao.AlertEntity save(@NonNull com.atlassian.diagnostics.Alert alert)
- Specified by:
savein interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
streamAll
public void streamAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertEntity> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)- Specified by:
streamAllin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
streamByIds
public void streamByIds(@NonNull Collection<Long> ids, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertEntity> rowCallback)
- Specified by:
streamByIdsin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
streamMetrics
public void streamMetrics(@NonNull com.atlassian.diagnostics.AlertCriteria criteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertMetric> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)- Specified by:
streamMetricsin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
streamMinimalAlerts
public void streamMinimalAlerts(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.MinimalAlertEntity> rowCallback, @NonNull com.atlassian.diagnostics.PageRequest pageRequest)- Specified by:
streamMinimalAlertsin interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
-