public abstract class AbstractHibernateStreamingValue extends StreamingValue
Modifier and Type | Field and Description |
---|---|
protected OmObservation |
observationTemplate |
protected GetObservationRequest |
request |
private static long |
serialVersionUID |
protected org.hibernate.Session |
session |
protected HibernateSessionHolder |
sessionHolder |
private SpatialFilteringProfileAdder |
spatialFilteringProfileAdder |
protected org.hibernate.criterion.Criterion |
temporalFilterCriterion |
Constructor and Description |
---|
AbstractHibernateStreamingValue(GetObservationRequest request)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addValuesToObservation(OmObservation observation,
AbstractValue abstractValue)
Add
AbstractValue data to OmObservation |
protected Time |
createPhenomenonTime(AbstractObservationTime minTime,
AbstractObservationTime maxTime)
Create phenomenon time from min and max
AbstractObservationTime s |
protected Time |
createPhenomenonTime(AbstractValue abstractValue)
Create the phenomenon time from
AbstractValue |
protected TimeInstant |
createResutlTime(AbstractObservationTime maxTime)
Create result time from
AbstractObservationTime |
protected TimeInstant |
createResutlTime(Date date)
Create result time from
Date |
protected NamedValue<?> |
createSpatialFilteringProfileParameter(com.vividsolutions.jts.geom.Geometry samplingGeometry) |
protected Time |
createTime(org.joda.time.DateTime start,
org.joda.time.DateTime end)
Create
Time from DateTime s |
protected TimeValuePair |
createTimeValuePairFrom(AbstractValue abstractValue)
Create a
TimeValuePair from AbstractValue |
protected Time |
createValidTime(AbstractObservationTime minTime,
AbstractObservationTime maxTime)
Create valid time from min and max
AbstractObservationTime s |
protected TimePeriod |
createValidTime(Date start,
Date end)
Create
TimePeriod from Date s |
protected Set<Long> |
getObservationIds(Collection<AbstractValue> abstractValuesResult)
Get the observation ids from
AbstractValue s |
protected SpatialFilteringProfileAdder |
getSpatialFilteringProfileAdder()
Deprecated.
|
protected Value<?> |
getValueFrom(AbstractValue abstractValue)
Get internal
Value from AbstractValue |
protected boolean |
isSetSpatialFilteringProfileAdder()
Deprecated.
|
void |
setObservationTemplate(OmObservation observationTemplate)
Set the observation template which contains all metadata
|
protected void |
setSpatialFilteringProfileAdder(SpatialFilteringProfileAdder spatialFilteringProfileAdder)
Deprecated.
|
void |
setTemporalFilterCriterion(org.hibernate.criterion.Criterion temporalFilterCriterion)
Set the temporal filter
Criterion |
getPhenomenonTime, getResultTime, getUnit, getValidTime, getValue, isSetPhenomenonTime, isSetResultTime, isSetUnit, isSetValidTime, nextValue, queryTimes, queryUnit, setPhenomenonTime, setResultTime, setUnit, setValidTime, setValue
getObservation, hasNextValue, mergeObservation, nextSingleObservation
getObservableProperty, getObservationID, getObservationType, getTokenSeparator, getTupleSeparator, isSetObservablePropertyD, isSetObservationID, isSetObservationType, isSetTokenSeparator, isSetTupleSeparator, setValuesForResultEncoding
private static final long serialVersionUID
protected final HibernateSessionHolder sessionHolder
private SpatialFilteringProfileAdder spatialFilteringProfileAdder
protected org.hibernate.Session session
protected OmObservation observationTemplate
protected GetObservationRequest request
protected org.hibernate.criterion.Criterion temporalFilterCriterion
public AbstractHibernateStreamingValue(GetObservationRequest request)
request
- GetObservationRequest
public void setObservationTemplate(OmObservation observationTemplate)
observationTemplate
- Observation template to setpublic void setTemporalFilterCriterion(org.hibernate.criterion.Criterion temporalFilterCriterion)
Criterion
temporalFilterCriterion
- Temporal filter Criterion
protected TimeValuePair createTimeValuePairFrom(AbstractValue abstractValue) throws OwsExceptionReport
TimeValuePair
from AbstractValue
abstractValue
- AbstractValue
to create TimeValuePair
fromTimeValuePair
OwsExceptionReport
- If an error occurs when getting the valueprotected void addValuesToObservation(OmObservation observation, AbstractValue abstractValue) throws OwsExceptionReport
AbstractValue
data to OmObservation
observation
- OmObservation
to add dataabstractValue
- AbstractValue
to get data fromOwsExceptionReport
- If an error occurs when getting the valueprotected Set<Long> getObservationIds(Collection<AbstractValue> abstractValuesResult)
AbstractValue
sabstractValuesResult
- AbstractValue
s to get ids from@Deprecated protected SpatialFilteringProfileAdder getSpatialFilteringProfileAdder()
SpatialFilteringProfileAdder
@Deprecated protected void setSpatialFilteringProfileAdder(SpatialFilteringProfileAdder spatialFilteringProfileAdder)
SpatialFilteringProfileAdder
spatialFilteringProfileAdder
- the spatialFilteringProfileAdder to set@Deprecated protected boolean isSetSpatialFilteringProfileAdder()
SpatialFilteringProfileAdder
is settrue
, if the SpatialFilteringProfileAdder
is
setprotected Time createPhenomenonTime(AbstractValue abstractValue)
AbstractValue
abstractValue
- AbstractValue
for get time fromprotected Time createPhenomenonTime(AbstractObservationTime minTime, AbstractObservationTime maxTime)
AbstractObservationTime
sminTime
- minimum AbstractObservationTime
maxTime
- maximum AbstractObservationTime
protected TimeInstant createResutlTime(AbstractObservationTime maxTime)
AbstractObservationTime
maxTime
- AbstractObservationTime
to create result time fromprotected TimeInstant createResutlTime(Date date)
Date
date
- Date
to create result time fromprotected Time createValidTime(AbstractObservationTime minTime, AbstractObservationTime maxTime)
AbstractObservationTime
sminTime
- minimum AbstractObservationTime
maxTime
- maximum AbstractObservationTime
protected TimePeriod createValidTime(Date start, Date end)
TimePeriod
from Date
sstart
- Start Date
end
- End Date
TimePeriod
or null if Date
s are nullprotected Time createTime(org.joda.time.DateTime start, org.joda.time.DateTime end)
Time
from DateTime
sstart
- Start DateTime
end
- End DateTime
Time
protected Value<?> getValueFrom(AbstractValue abstractValue) throws OwsExceptionReport
Value
from AbstractValue
abstractValue
- AbstractValue
to get Value
fromValue
or null if the concrete AbstractValue
is
not supportedOwsExceptionReport
- If an error occurs when creating
SweDataArrayValue
protected NamedValue<?> createSpatialFilteringProfileParameter(com.vividsolutions.jts.geom.Geometry samplingGeometry) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2014 52north.org. All Rights Reserved.