Package org.n52.series.db.beans.sta
Class ObservationEntity<T>
- java.lang.Object
-
- org.n52.series.db.beans.IdEntity
-
- org.n52.series.db.beans.sta.AbstractObservationEntity<T>
-
- org.n52.series.db.beans.sta.ObservationEntity<T>
-
- All Implemented Interfaces:
Serializable,Comparable<ObservationEntity<T>>,HibernateRelations.HasDataset,HibernateRelations.HasDescription,HibernateRelations.HasFeature<AbstractObservationEntity<T>>,HibernateRelations.HasFeatureGetter,HibernateRelations.HasId,HibernateRelations.HasIdentifier,HibernateRelations.HasName,HibernateRelations.HasParameters,HibernateRelations.HasPhenomenonTime,HibernateRelations.HasResultTime,HibernateRelations.HasSamplingGeometry,HibernateRelations.HasSamplingTime,HibernateRelations.HasStaIdentifier,HibernateRelations.HasValidTime<AbstractObservationEntity<T>>,HibernateRelations.HasVerticalFromTo,HibernateRelations.IsStaEntity,AbstractStaEntity,StaRelations.Datastream<AbstractObservationEntity<T>>
- Direct Known Subclasses:
BooleanObservationEntity,CategoryObservationEntity,CountObservationEntity,QuantityObservationEntity,TextObservationEntity
@Entity public class ObservationEntity<T> extends AbstractObservationEntity<T> implements Comparable<ObservationEntity<T>>
Represents a SensorThingsAPI Observation. Uses Javax Annotations to use @AttributeOverride- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_DATASETstatic StringPROPERTY_GEOMETRY_ENTITYstatic StringPROPERTY_IDstatic StringPROPERTY_IDENTIFIERstatic StringPROPERTY_PARAMETERSstatic StringPROPERTY_RESULT_TIMEstatic StringPROPERTY_SAMPLING_TIME_ENDstatic StringPROPERTY_SAMPLING_TIME_STARTstatic StringPROPERTY_STA_IDENTIFIERstatic StringPROPERTY_VALID_TIME_ENDstatic StringPROPERTY_VALID_TIME_STARTstatic StringPROPERTY_VALUEstatic StringPROPERTY_VALUE_BOOLEANstatic StringPROPERTY_VALUE_CATEGORYstatic StringPROPERTY_VALUE_COUNTstatic StringPROPERTY_VALUE_QUANTITYstatic StringPROPERTY_VALUE_TEXT-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasDescription
DESCRIPTION
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasFeatureGetter
FEATURE_OF_INTEREST
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasIdentifier
IDENTIFIER
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasName
NAME
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasParameters
PARAMETERS
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasResultTime
RESULT_TIME
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasSamplingGeometry
SAMPLING_GEOMETRY
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasStaIdentifier
STA_IDENTIFIER
-
Fields inherited from interface org.n52.series.db.beans.HibernateRelations.HasValidTime
VALID_TIME_END, VALID_TIME_START
-
-
Constructor Summary
Constructors Constructor Description ObservationEntity()
-
Method Summary
-
Methods inherited from class org.n52.series.db.beans.sta.AbstractObservationEntity
hasValue, isProcessed, setProcessed
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasDataset
isSetDataset
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasDescription
isSetDescription
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasFeature
hasFeature
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasIdentifier
getDomain, isSetDomain, isSetIdentifier, setDomain, setIdentifier
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasName
isSetName
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasParameters
hasParameters
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasPhenomenonTime
getPhenomenonTimeEnd, getPhenomenonTimeStart, hasPhenomenonTimeEnd, hasPhenomenonTimeStart, setPhenomenonTimeEnd, setPhenomenonTimeStart
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasResultTime
hasResultTime
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasSamplingGeometry
hasSamplingGeometry
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasSamplingTime
hasSamplingTimeEnd, hasSamplingTimeStart, isSamplingTimePeriod
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasStaIdentifier
addFragment, addHost, addPath, addPort, addValue, addValue, addValues, generateUUID, isSetStaIdentifier, processIdentifierForSta
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasValidTime
isSetValidEndTime, isSetValidStartTime, isSetValidTime
-
Methods inherited from interface org.n52.series.db.beans.HibernateRelations.HasVerticalFromTo
isSetVerticalFrom, isSetVerticalFromTo, isSetVerticalTo
-
Methods inherited from interface org.n52.series.db.beans.sta.StaRelations.Datastream
hasDatastream
-
-
-
-
Field Detail
-
PROPERTY_ID
public static final String PROPERTY_ID
- See Also:
- Constant Field Values
-
PROPERTY_IDENTIFIER
public static final String PROPERTY_IDENTIFIER
- See Also:
- Constant Field Values
-
PROPERTY_STA_IDENTIFIER
public static final String PROPERTY_STA_IDENTIFIER
- See Also:
- Constant Field Values
-
PROPERTY_RESULT_TIME
public static final String PROPERTY_RESULT_TIME
- See Also:
- Constant Field Values
-
PROPERTY_SAMPLING_TIME_START
public static final String PROPERTY_SAMPLING_TIME_START
- See Also:
- Constant Field Values
-
PROPERTY_SAMPLING_TIME_END
public static final String PROPERTY_SAMPLING_TIME_END
- See Also:
- Constant Field Values
-
PROPERTY_VALID_TIME_START
public static final String PROPERTY_VALID_TIME_START
- See Also:
- Constant Field Values
-
PROPERTY_VALID_TIME_END
public static final String PROPERTY_VALID_TIME_END
- See Also:
- Constant Field Values
-
PROPERTY_GEOMETRY_ENTITY
public static final String PROPERTY_GEOMETRY_ENTITY
- See Also:
- Constant Field Values
-
PROPERTY_DATASET
public static final String PROPERTY_DATASET
- See Also:
- Constant Field Values
-
PROPERTY_VALUE
public static final String PROPERTY_VALUE
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_BOOLEAN
public static final String PROPERTY_VALUE_BOOLEAN
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_TEXT
public static final String PROPERTY_VALUE_TEXT
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_QUANTITY
public static final String PROPERTY_VALUE_QUANTITY
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CATEGORY
public static final String PROPERTY_VALUE_CATEGORY
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_COUNT
public static final String PROPERTY_VALUE_COUNT
- See Also:
- Constant Field Values
-
PROPERTY_PARAMETERS
public static final String PROPERTY_PARAMETERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDatastream
public DatastreamEntity getDatastream()
- Specified by:
getDatastreamin interfaceStaRelations.Datastream<T>
-
setDatastream
public ObservationEntity setDatastream(DatastreamEntity datastream)
- Specified by:
setDatastreamin interfaceStaRelations.Datastream<T>
-
getFeature
public AbstractFeatureEntity<?> getFeature()
- Specified by:
getFeaturein interfaceHibernateRelations.HasFeatureGetter
-
setFeature
public ObservationEntity<T> setFeature(AbstractFeatureEntity<?> featureOfInterest)
- Specified by:
setFeaturein interfaceHibernateRelations.HasFeature<T>
-
getSamplingTimeStart
public Date getSamplingTimeStart()
- Specified by:
getSamplingTimeStartin interfaceHibernateRelations.HasSamplingTime- Returns:
- the samplingTimeStart
-
setSamplingTimeStart
public void setSamplingTimeStart(Date samplingTimeStart)
- Specified by:
setSamplingTimeStartin interfaceHibernateRelations.HasSamplingTime- Parameters:
samplingTimeStart- the samplingTimeStart
-
getSamplingTimeEnd
public Date getSamplingTimeEnd()
- Specified by:
getSamplingTimeEndin interfaceHibernateRelations.HasSamplingTime- Returns:
- the samplingTimeEnd
-
setSamplingTimeEnd
public void setSamplingTimeEnd(Date samplingTimeEnd)
- Specified by:
setSamplingTimeEndin interfaceHibernateRelations.HasSamplingTime- Parameters:
samplingTimeEnd- the samplingTimeEnd
-
getValidTimeStart
public Date getValidTimeStart()
Description copied from interface:HibernateRelations.HasValidTimeGet the start valid time- Specified by:
getValidTimeStartin interfaceHibernateRelations.HasValidTime<T>- Returns:
- Start valid time
-
setValidTimeStart
public ObservationEntity<T> setValidTimeStart(Date validTimeStart)
Description copied from interface:HibernateRelations.HasValidTimeSet the start valid time- Specified by:
setValidTimeStartin interfaceHibernateRelations.HasValidTime<T>- Parameters:
validTimeStart- Start valid time to set- Returns:
- this
-
getValidTimeEnd
public Date getValidTimeEnd()
Description copied from interface:HibernateRelations.HasValidTimeGet the end valid time- Specified by:
getValidTimeEndin interfaceHibernateRelations.HasValidTime<T>- Returns:
- End valid time
-
setValidTimeEnd
public ObservationEntity<T> setValidTimeEnd(Date validTimeEnd)
Description copied from interface:HibernateRelations.HasValidTimeSet the end valid time- Specified by:
setValidTimeEndin interfaceHibernateRelations.HasValidTime<T>- Parameters:
validTimeEnd- End valid time to set- Returns:
- this
-
getResultTime
public Date getResultTime()
Description copied from interface:HibernateRelations.HasResultTimeGet the result time- Specified by:
getResultTimein interfaceHibernateRelations.HasResultTime- Returns:
- Result time
-
setResultTime
public void setResultTime(Date resultTime)
Description copied from interface:HibernateRelations.HasResultTimeSet the result time- Specified by:
setResultTimein interfaceHibernateRelations.HasResultTime- Parameters:
resultTime- Result tiem to set
-
getId
public Long getId()
- Specified by:
getIdin interfaceHibernateRelations.HasId- Overrides:
getIdin classIdEntity
-
setId
public void setId(Long id)
- Specified by:
setIdin interfaceHibernateRelations.HasId- Overrides:
setIdin classIdEntity
-
getStaIdentifier
public String getStaIdentifier()
- Specified by:
getStaIdentifierin interfaceHibernateRelations.HasStaIdentifier
-
setStaIdentifier
public void setStaIdentifier(String staIdentifier)
- Specified by:
setStaIdentifierin interfaceHibernateRelations.HasStaIdentifier
-
getParameters
public Set<ParameterEntity<?>> getParameters()
- Specified by:
getParametersin interfaceHibernateRelations.HasParameters
-
setParameters
public void setParameters(Set<ParameterEntity<?>> parameters)
- Specified by:
setParametersin interfaceHibernateRelations.HasParameters
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceHibernateRelations.HasDescription
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceHibernateRelations.HasDescription
-
getName
public String getName()
- Specified by:
getNamein interfaceHibernateRelations.HasName
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceHibernateRelations.HasName
-
getDataset
public DatasetEntity getDataset()
- Specified by:
getDatasetin interfaceHibernateRelations.HasDataset
-
setDataset
public void setDataset(DatasetEntity dataset)
- Specified by:
setDatasetin interfaceHibernateRelations.HasDataset
-
compareTo
public int compareTo(ObservationEntity<T> other)
- Specified by:
compareToin interfaceComparable<T>
-
getValue
public T getValue()
- Specified by:
getValuein classAbstractObservationEntity<T>
-
setValue
public ObservationEntity<T> setValue(T value)
- Specified by:
setValuein classAbstractObservationEntity<T>
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifierin interfaceHibernateRelations.HasIdentifier
-
setIdentifier
public void setIdentifier(String identifier, boolean staSupportsUrls)
- Specified by:
setIdentifierin interfaceHibernateRelations.HasIdentifier
-
getSamplingGeometry
public org.locationtech.jts.geom.Geometry getSamplingGeometry()
- Specified by:
getSamplingGeometryin interfaceHibernateRelations.HasSamplingGeometry
-
setSamplingGeometry
public void setSamplingGeometry(org.locationtech.jts.geom.Geometry samplingGeometry)
- Specified by:
setSamplingGeometryin interfaceHibernateRelations.HasSamplingGeometry
-
getVerticalTo
public BigDecimal getVerticalTo()
- Specified by:
getVerticalToin interfaceHibernateRelations.HasVerticalFromTo
-
setVerticalTo
public void setVerticalTo(BigDecimal verticalTo)
- Specified by:
setVerticalToin interfaceHibernateRelations.HasVerticalFromTo
-
getVerticalFrom
public BigDecimal getVerticalFrom()
- Specified by:
getVerticalFromin interfaceHibernateRelations.HasVerticalFromTo
-
setVerticalFrom
public void setVerticalFrom(BigDecimal verticalFrom)
- Specified by:
setVerticalFromin interfaceHibernateRelations.HasVerticalFromTo
-
-