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 interface
HibernateAlertEntityDao.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 void
deleteAll(@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.AlertEntity
getById(long id)
Class
getPersistentClass()
Gets the type ofEntityObject
this Dao works with.@NonNull com.atlassian.diagnostics.internal.dao.AlertEntity
save(@NonNull com.atlassian.diagnostics.Alert alert)
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)
void
streamByIds(@NonNull Collection<Long> ids, @NonNull com.atlassian.diagnostics.internal.dao.RowCallback<com.atlassian.diagnostics.internal.dao.AlertEntity> rowCallback)
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)
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)
-
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:
deleteAll
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllComponentIds
public Set<String> findAllComponentIds()
- Specified by:
findAllComponentIds
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllIssueIds
public Map<String,com.atlassian.diagnostics.Severity> findAllIssueIds()
- Specified by:
findAllIssueIds
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllNodeNames
public Set<String> findAllNodeNames()
- Specified by:
findAllNodeNames
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllPluginKeys
public Set<String> findAllPluginKeys()
- Specified by:
findAllPluginKeys
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
getById
public @Nullable com.atlassian.diagnostics.internal.dao.AlertEntity getById(long id)
- Specified by:
getById
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
getPersistentClass
public Class getPersistentClass()
Description copied from interface:ObjectDaoInternal
Gets the type ofEntityObject
this Dao works with.- Specified by:
getPersistentClass
in interfaceObjectDao
- Specified by:
getPersistentClass
in interfaceObjectDaoInternal
- Returns:
- the type
-
save
public @NonNull com.atlassian.diagnostics.internal.dao.AlertEntity save(@NonNull com.atlassian.diagnostics.Alert alert)
- Specified by:
save
in 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:
streamAll
in 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:
streamByIds
in 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:
streamMetrics
in 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:
streamMinimalAlerts
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
-