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 Classes
    Modifier and Type
    Class
    Description
    static interface 
    A consumer that accepts a single input argument and returns a boolean indicating if further inputs are wanted.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HibernateAlertEntityDao(org.hibernate.SessionFactory sessionFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAll(@NonNull com.atlassian.diagnostics.AlertCriteria alertCriteria)
     
     
    Map<String,com.atlassian.diagnostics.Severity>
     
     
     
    @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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.atlassian.diagnostics.internal.dao.AlertEntityDao
    • findAllComponentIds

      public Set<String> findAllComponentIds()
      Specified by:
      findAllComponentIds in interface com.atlassian.diagnostics.internal.dao.AlertEntityDao
    • findAllIssueIds

      public Map<String,com.atlassian.diagnostics.Severity> findAllIssueIds()
      Specified by:
      findAllIssueIds in interface com.atlassian.diagnostics.internal.dao.AlertEntityDao
    • findAllNodeNames

      public Set<String> findAllNodeNames()
      Specified by:
      findAllNodeNames in interface com.atlassian.diagnostics.internal.dao.AlertEntityDao
    • findAllPluginKeys

      public Set<String> findAllPluginKeys()
      Specified by:
      findAllPluginKeys in interface com.atlassian.diagnostics.internal.dao.AlertEntityDao
    • getById

      public @Nullable com.atlassian.diagnostics.internal.dao.AlertEntity getById(long id)
      Specified by:
      getById in interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.atlassian.diagnostics.internal.dao.AlertEntityDao