All Known Subinterfaces:
AlarmJournalEvent, HistoricalTagValue, RetryPersistentData, TagGroupHistorySet, TagHistoryData
All Known Implementing Classes:
AnnotationPersistentData, BasicHistoricalRecord, BasicTagGroupHistorySet, MetadataPersistentData, PackedHistoricalQualifiedValue, PersistentAuditRecord, PersistentDataBundle, TagRetirementList

public interface PersistentData
Represents a type of data that can persist across application sessions.

Implementations of this interface are expected to provide specific kinds of persistent data and its associated PersistentFlavor.

  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns the count of data elements.
    @NotNull PersistentFlavor<?>
    Retrieves the PersistentFlavor associated with this kind of persistent data.
  • Method Details

    • getFlavor

      @NotNull @NotNull PersistentFlavor<?> getFlavor()
      Retrieves the PersistentFlavor associated with this kind of persistent data.
      Returns:
      a PersistentFlavor object
      Throws:
      NullPointerException - if the PersistentFlavor is not defined
    • getDataCount

      default int getDataCount()
      Returns the count of data elements. Default implementation assumes there's always at least one data element.
      Returns:
      the count of data elements