java.lang.Object
com.inductiveautomation.ignition.common.sqltags.history.annotations.Annotation
All Implemented Interfaces:
Serializable

public class Annotation extends Object implements Serializable
An Annotation represents data of a certain type, for a given path, for a given point in time or range of time. There is little contract defined for types and data formats, though in general data is expected to be simple text, or a json document.
See Also:
  • Constructor Details

    • Annotation

      public Annotation()
  • Method Details

    • newBuilder

      public static Annotation.Builder newBuilder()
    • newDelete

      public static Annotation newDelete(Serializable storageId)
    • fromJson

      public static Annotation fromJson(String json)
    • fromJson

      public static Annotation fromJson(com.inductiveautomation.ignition.common.gson.JsonElement json)
    • clone

      public Annotation clone()
      Overrides:
      clone in class Object
    • getPath

      public QualifiedPath getPath()
    • updatePath

      public void updatePath(QualifiedPath path)
      Path can be mutated as we move from system to system.
    • getType

      public String getType()
    • getRangeStart

      public Date getRangeStart()
    • getRangeEnd

      public Date getRangeEnd()
    • getData

      public String getData()
    • getStorageId

      public Serializable getStorageId()
    • hasStorageId

      public boolean hasStorageId()
    • isDeleted

      public boolean isDeleted()
    • delete

      public void delete()
    • isUpdated

      public boolean isUpdated()
    • getLastUpdated

      public Date getLastUpdated()
    • setLastUpdated

      public void setLastUpdated()
    • toJson

      public String toJson()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object