Class HibernateAlertEntityDao
java.lang.Object
com.atlassian.confluence.internal.diagnostics.persistence.dao.hibernate.HibernateAlertEntityDao
- All Implemented Interfaces:
com.atlassian.diagnostics.internal.dao.AlertEntityDao
public final class HibernateAlertEntityDao
extends Object
implements com.atlassian.diagnostics.internal.dao.AlertEntityDao
- Since:
- 6.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A consumer that accepts a single input argument and returns a boolean indicating if further inputs are wanted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAll
(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria) @Nullable com.atlassian.diagnostics.internal.dao.AlertEntity
getById
(long id) @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)
-
Constructor Details
-
HibernateAlertEntityDao
public HibernateAlertEntityDao(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
deleteAll
public void deleteAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria) - Specified by:
deleteAll
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllComponentIds
- Specified by:
findAllComponentIds
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllIssueIds
- Specified by:
findAllIssueIds
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
findAllNodeNames
- Specified by:
findAllNodeNames
in interfacecom.atlassian.diagnostics.internal.dao.AlertEntityDao
-
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
-
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
-