Class SolarNodeMetadata

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Long>, NodeMetadata, net.solarnetwork.dao.Entity<Long>, net.solarnetwork.domain.Identity<Long>
Direct Known Subclasses:
SolarNodeMetadataMatch

public class SolarNodeMetadata extends BaseEntity implements NodeMetadata, Cloneable, Serializable
Metadata about a SolarNode. Note that JsonUtils.getObjectFromJSON(String, Class) is used to manage the JSON value passed to setMetaJson(String).
Since:
1.32
See Also:
  • Constructor Details

    • SolarNodeMetadata

      public SolarNodeMetadata()
  • Method Details

    • getNodeId

      public Long getNodeId()
      Convenience getter for BaseIdentity.getId().
      Specified by:
      getNodeId in interface NodeMetadata
      Returns:
      the nodeId
    • setNodeId

      public void setNodeId(Long nodeId)
      Convenience setter for BaseIdentity.setId(Long).
      Parameters:
      nodeId - the nodeId to set
    • getMetadata

      public net.solarnetwork.domain.datum.GeneralDatumMetadata getMetadata()
      Alternative for getMeta(). This method exists so that we can configure @JsonUnwrapped on our GeneralDatumMetadata but still support setting it in a normal, wrapped fashion via setMeta(GeneralDatumMetadata).
      Specified by:
      getMetadata in interface NodeMetadata
      Returns:
      GeneralDatumMetadata
    • getMeta

      public net.solarnetwork.domain.datum.GeneralDatumMetadata getMeta()
    • setMeta

      public void setMeta(net.solarnetwork.domain.datum.GeneralDatumMetadata meta)
    • getMetaJson

      public String getMetaJson()
    • setMetaJson

      public void setMetaJson(String infoJson)
    • getUpdated

      public Instant getUpdated()
      Description copied from interface: NodeMetadata
      Get the updated date.
      Specified by:
      getUpdated in interface NodeMetadata
      Returns:
      the updated date
    • setUpdated

      public void setUpdated(Instant updated)