Interface IIdentifiable

All Known Subinterfaces:
IAudit, ILocatedResource, IMonitor, ISentinelAlert, ISentinelEvent
All Known Implementing Classes:
AAudit, AlertDto, Audit, Audit, AuditDto, EventDto, GroupedStreamInfo.PartialEvent, Monitor, MonitorDto, SentinelAlert, SentinelEvent, SingleStreamInfo

public interface IIdentifiable
Base interface for all models having an id.
Author:
ActiveViam
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Default id value (0L) given to an entity before being persisted.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    long
    Gets the resource id.
  • Field Details Link icon

    • NO_ID Link icon

      static final long NO_ID
      Default id value (0L) given to an entity before being persisted.

      A persisted resource must not have this id.
      This is the lowest value (excluded) that an id can have: id > NO_ID

      See Also:
  • Method Details Link icon

    • getId Link icon

      long getId()
      Gets the resource id.
      Returns:
      the id