Package net.solarnetwork.central.domain
Class SolarNodeMetadata
java.lang.Object
net.solarnetwork.central.domain.BaseIdentity
net.solarnetwork.central.dao.BaseEntity
net.solarnetwork.central.domain.SolarNodeMetadata
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Long>,NodeMetadata,net.solarnetwork.dao.Entity<Long>,net.solarnetwork.domain.Identity<Long>
- Direct Known Subclasses:
SolarNodeMetadataMatch
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.solarnetwork.domain.datum.GeneralDatumMetadatagetMeta()net.solarnetwork.domain.datum.GeneralDatumMetadataAlternative forgetMeta().Convenience getter forBaseIdentity.getId().Get the updated date.voidsetMeta(net.solarnetwork.domain.datum.GeneralDatumMetadata meta) voidsetMetaJson(String infoJson) voidConvenience setter forBaseIdentity.setId(Long).voidsetUpdated(Instant updated) Methods inherited from class net.solarnetwork.central.dao.BaseEntity
getCreated, setCreatedMethods inherited from class net.solarnetwork.central.domain.BaseIdentity
clone, compareTo, equals, getId, hashCode, setIdMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasIdMethods inherited from interface net.solarnetwork.central.domain.NodeMetadata
getCreated
-
Constructor Details
-
SolarNodeMetadata
public SolarNodeMetadata()
-
-
Method Details
-
getNodeId
Convenience getter forBaseIdentity.getId().- Specified by:
getNodeIdin interfaceNodeMetadata- Returns:
- the nodeId
-
setNodeId
Convenience setter forBaseIdentity.setId(Long).- Parameters:
nodeId- the nodeId to set
-
getMetadata
public net.solarnetwork.domain.datum.GeneralDatumMetadata getMetadata()Alternative forgetMeta(). This method exists so that we can configure@JsonUnwrappedon ourGeneralDatumMetadatabut still support setting it in a normal, wrapped fashion viasetMeta(GeneralDatumMetadata).- Specified by:
getMetadatain interfaceNodeMetadata- Returns:
- GeneralDatumMetadata
-
getMeta
public net.solarnetwork.domain.datum.GeneralDatumMetadata getMeta() -
setMeta
public void setMeta(net.solarnetwork.domain.datum.GeneralDatumMetadata meta) -
getMetaJson
-
setMetaJson
-
getUpdated
Description copied from interface:NodeMetadataGet the updated date.- Specified by:
getUpdatedin interfaceNodeMetadata- Returns:
- the updated date
-
setUpdated
-