Class Annotation
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.history.annotations.Annotation
-
- All Implemented Interfaces:
java.io.Serializable
public class Annotation extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Annotation.AnnotationDeserializer
static class
Annotation.Builder
static class
Annotation.DateAdapter
-
Constructor Summary
Constructors Constructor Description Annotation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation
clone()
void
delete()
boolean
equals(java.lang.Object o)
static Annotation
fromJson(com.inductiveautomation.ignition.common.gson.JsonElement json)
static Annotation
fromJson(java.lang.String json)
java.lang.String
getData()
java.util.Date
getLastUpdated()
QualifiedPath
getPath()
java.util.Date
getRangeEnd()
java.util.Date
getRangeStart()
java.io.Serializable
getStorageId()
java.lang.String
getType()
int
hashCode()
boolean
hasStorageId()
boolean
isDeleted()
boolean
isUpdated()
static Annotation.Builder
newBuilder()
static Annotation
newDelete(java.io.Serializable storageId)
void
setLastUpdated()
java.lang.String
toJson()
java.lang.String
toString()
void
updatePath(QualifiedPath path)
Path can be mutated as we move from system to system.
-
-
-
Method Detail
-
newBuilder
public static Annotation.Builder newBuilder()
-
newDelete
public static Annotation newDelete(java.io.Serializable storageId)
-
fromJson
public static Annotation fromJson(java.lang.String json)
-
fromJson
public static Annotation fromJson(com.inductiveautomation.ignition.common.gson.JsonElement json)
-
clone
public Annotation clone()
- Overrides:
clone
in classjava.lang.Object
-
getPath
public QualifiedPath getPath()
-
updatePath
public void updatePath(QualifiedPath path)
Path can be mutated as we move from system to system.
-
getType
public java.lang.String getType()
-
getRangeStart
public java.util.Date getRangeStart()
-
getRangeEnd
public java.util.Date getRangeEnd()
-
getData
public java.lang.String getData()
-
getStorageId
public java.io.Serializable getStorageId()
-
hasStorageId
public boolean hasStorageId()
-
isDeleted
public boolean isDeleted()
-
delete
public void delete()
-
isUpdated
public boolean isUpdated()
-
getLastUpdated
public java.util.Date getLastUpdated()
-
setLastUpdated
public void setLastUpdated()
-
toJson
public java.lang.String toJson()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-