public class GetObservationDAO extends AbstractGetObservationDAO
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private HibernateSessionHolder |
sessionHolder |
DATASOURCE_DAO_IDENTIFIER, IDEPENDET_IDENTIFIER
Constructor and Description |
---|
GetObservationDAO()
constructor
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getConformanceClasses() |
String |
getDatasourceDaoIdentifier() |
GetObservationResponse |
getObservation(GetObservationRequest sosRequest)
process the GetObservation query
|
private HibernateSeriesStreamingValue |
getSeriesStreamingValue(GetObservationRequest request,
long seriesId)
Get the series streaming observation value for the observations
|
private HibernateStreamingValue |
getStreamingValue(GetObservationRequest request,
long procedure,
long observableProperty,
long feature)
Get the streaming observation value for the observations
|
protected List<OmObservation> |
queryObservation(GetObservationRequest request,
ObservationDAO observationDAO,
org.hibernate.Session session)
Query observations from database depending on requested filters
|
protected List<OmObservation> |
queryObservationForStreaming(GetObservationRequest request,
org.hibernate.Session session)
Query the observations for streaming datasource
|
protected List<OmObservation> |
querySeriesObservation(GetObservationRequest request,
AbstractSeriesObservationDAO observationDAO,
org.hibernate.Session session)
Query observation if the series mapping is supported.
|
protected List<OmObservation> |
querySeriesObservationForStreaming(GetObservationRequest request,
org.hibernate.Session session)
Query the series observations for streaming datasource
|
getResultTime, setOperationsMetadata
addFeatureOfInterestParameter, addFeatureOfInterestParameter, addObservablePropertyParameter, addObservablePropertyParameter, addOfferingParameter, addOfferingParameter, addProcedureParameter, addProcedureParameter, getCache, getConfigurator, getDCP, getOperationDAOKeyType, getOperationName, getOperationsMetadata
private static final org.slf4j.Logger LOGGER
private final HibernateSessionHolder sessionHolder
public String getDatasourceDaoIdentifier()
public GetObservationResponse getObservation(GetObservationRequest sosRequest) throws OwsExceptionReport
AbstractGetObservationDAO
getObservation
in class AbstractGetObservationDAO
sosRequest
- GetObservation object which represents the getObservation
requestOwsExceptionReport
- * if query of the database or creating the O&M document
failedpublic Set<String> getConformanceClasses()
getConformanceClasses
in interface OperationDAO
getConformanceClasses
in class AbstractOperationDAO
protected List<OmObservation> queryObservation(GetObservationRequest request, ObservationDAO observationDAO, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- GetObservation requestobservationDAO
- session
- Hibernate sessionOwsExceptionReport
- If an error occurs during requestingConverterException
- If an error occurs during convertingprotected List<OmObservation> querySeriesObservation(GetObservationRequest request, AbstractSeriesObservationDAO observationDAO, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- GetObservation requestobservationDAO
- session
- Hibernate sessionOwsExceptionReport
- If an error occurs.ConverterException
- If an error occurs during sensor description creation.protected List<OmObservation> queryObservationForStreaming(GetObservationRequest request, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- The GetObservation requestsession
- Hibernate SessionOwsExceptionReport
- If an error occurs.ConverterException
- If an error occurs during sensor description creation.protected List<OmObservation> querySeriesObservationForStreaming(GetObservationRequest request, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- The GetObservation requestsession
- Hibernate SessionOwsExceptionReport
- If an error occurs.ConverterException
- If an error occurs during sensor description creation.private HibernateSeriesStreamingValue getSeriesStreamingValue(GetObservationRequest request, long seriesId) throws CodedException
request
- GetObservation requestseriesId
- Series idCodedException
private HibernateStreamingValue getStreamingValue(GetObservationRequest request, long procedure, long observableProperty, long feature)
request
- GetObservation requestprocedure
- Procedure idobservableProperty
- ObservableProperty idfeature
- FeatureOfInterest idCopyright © 2012-2015 52north.org. All Rights Reserved.