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 |
---|---|
private void |
addResultFilterToCriteria(org.hibernate.Criteria c,
Filter resultFilter)
Deprecated.
|
private boolean |
checkEncoderForMergeObservationValues(String responseFormat)
Deprecated.
|
private void |
checkMaxNumberOfReturnedSeriesSize(int size)
Deprecated.
|
private void |
checkMaxNumberOfReturnedTimeSeries(Collection<SeriesObservation> seriesObservations,
int metadataObservationsCount)
Deprecated.
|
private void |
checkMaxNumberOfReturnedValues(int size)
Deprecated.
|
private String |
checkValueForWildcardSingleCharAndEscape(ComparisonFilter resultFilter)
Deprecated.
|
private void |
checkValueReferenceForResultFilter(String valueReference)
Deprecated.
|
protected org.hibernate.Criteria |
createObservationCriteria(org.hibernate.Session session,
ObservationConstellation oc)
Deprecated.
|
protected org.hibernate.Criteria |
createObservationCriteria(org.hibernate.Session session,
ObservationConstellation oc,
Set<String> features)
Deprecated.
|
protected org.hibernate.Criteria |
createTemporalFilterLessCriteria(org.hibernate.Session session,
GetObservationRequest request,
Set<String> features)
Deprecated.
|
private List<Observation> |
executeQueryObservationHydro(org.hibernate.Criteria criteria)
Deprecated.
|
private List<String> |
getAndCheckFeatureOfInterest(ObservationConstellation observationConstellation,
Set<String> featureIdentifier,
org.hibernate.Session session)
Deprecated.
|
private List<ObservationConstellation> |
getAndCheckObservationConstellationSize(GetObservationRequest request,
org.hibernate.Session session)
Deprecated.
|
Set<String> |
getConformanceClasses() |
private org.hibernate.criterion.Criterion |
getCriterionForComparisonFilter(ComparisonFilter resultFilter)
Deprecated.
|
String |
getDatasourceDaoIdentifier() |
private org.hibernate.criterion.Criterion |
getFirstObservationTimeCriterion(ObservationConstellation oc,
String featureIdentifier,
org.hibernate.Session session)
Deprecated.
|
private org.hibernate.criterion.Criterion |
getLatestObservationTimeCriterion(ObservationConstellation oc,
String featureIdentifier,
org.hibernate.Session session)
Deprecated.
|
GetObservationResponse |
getObservation(GetObservationRequest sosRequest)
process the GetObservation query
|
protected List<ObservationConstellation> |
getObservationConstellations(org.hibernate.Session session,
GetObservationRequest request)
Deprecated.
|
protected org.hibernate.criterion.Order |
getOrder(SosConstants.SosIndeterminateTime indetTime)
Deprecated.
|
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 org.hibernate.criterion.Criterion |
getTemporalFilterCriterion(GetObservationRequest request)
Deprecated.
|
protected List<OmObservation> |
queryObservation(GetObservationRequest request,
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,
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
|
protected List<OmObservation> |
toSosObservation(Collection<AbstractObservation> observations,
String version,
String resultModel,
Locale language,
org.hibernate.Session session)
Deprecated.
|
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, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- GetObservation requestsession
- Hibernate sessionOwsExceptionReport
- If an error occurs during requestingConverterException
- If an error occurs during convertingprotected List<OmObservation> querySeriesObservation(GetObservationRequest request, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
request
- GetObservation requestsession
- 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)
request
- GetObservation requestseriesId
- Series idprivate HibernateStreamingValue getStreamingValue(GetObservationRequest request, long procedure, long observableProperty, long feature)
request
- GetObservation requestprocedure
- Procedure idobservableProperty
- ObservableProperty idfeature
- FeatureOfInterest id@Deprecated private List<ObservationConstellation> getAndCheckObservationConstellationSize(GetObservationRequest request, org.hibernate.Session session) throws CodedException
CodedException
HibernateGetObservationHelper#getAndCheckObservationConstellationSize}
@Deprecated private void checkMaxNumberOfReturnedTimeSeries(Collection<SeriesObservation> seriesObservations, int metadataObservationsCount) throws CodedException
CodedException
HibernateGetObservationHelper#getAndCheckObservationConstellationSize}
@Deprecated private void checkMaxNumberOfReturnedSeriesSize(int size) throws CodedException
CodedException
HibernateGetObservationHelper#getAndCheckObservationConstellationSize}
@Deprecated private void checkMaxNumberOfReturnedValues(int size) throws CodedException
CodedException
HibernateGetObservationHelper#getAndCheckObservationConstellationSize}
@Deprecated private List<String> getAndCheckFeatureOfInterest(ObservationConstellation observationConstellation, Set<String> featureIdentifier, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
@Deprecated protected List<OmObservation> toSosObservation(Collection<AbstractObservation> observations, String version, String resultModel, Locale language, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
observations
- Observation entitiesversion
- Service versionresultModel
- Requested result modelsession
- Hibernate sessionOwsExceptionReport
- If an error occursConverterException
- If an error occurs during the conversionHibernateGetObservationHelper#toSosObservation}
@Deprecated private void addResultFilterToCriteria(org.hibernate.Criteria c, Filter resultFilter) throws CodedException
c
- Hibernate criteriaresultFilter
- Result filter to addCodedException
- If the requested filter is not supported!HibernateGetObservationHelper#addResultFilterToCriteria}
@Deprecated private org.hibernate.criterion.Criterion getCriterionForComparisonFilter(ComparisonFilter resultFilter) throws CodedException
resultFilter
- Requested result filterCodedException
- If the requested result filter is not supportedHibernateGetObservationHelper#getCriterionForComparisonFilter}
@Deprecated private String checkValueForWildcardSingleCharAndEscape(ComparisonFilter resultFilter)
resultFilter
- Requested result filterHibernateGetObservationHelper#checkValueForWildcardSingleCharAndEscape}
@Deprecated private void checkValueReferenceForResultFilter(String valueReference) throws CodedException
valueReference
- Requested value referenceCodedException
- If the requested value reference is not supported.HibernateGetObservationHelper#checkValueReferenceForResultFilter}
@Deprecated protected List<ObservationConstellation> getObservationConstellations(org.hibernate.Session session, GetObservationRequest request)
session
- Hibernate sessionrequest
- GetObservation requestHibernateGetObservationHelper#getObservationConstellations}
@Deprecated protected org.hibernate.criterion.Criterion getTemporalFilterCriterion(GetObservationRequest request) throws OwsExceptionReport
request
- GetObservation requestOwsExceptionReport
- If a temporal filter is not supportedHibernateGetObservationHelper#getTemporalFilterCriterion}
@Deprecated private boolean checkEncoderForMergeObservationValues(String responseFormat)
HibernateGetObservationHelper#checkEncoderForMergeObservationValues}
@Deprecated protected org.hibernate.Criteria createObservationCriteria(org.hibernate.Session session, ObservationConstellation oc)
session
- Hibernate sessionoc
- ObservationConstellation with parameter for restrictions@Deprecated protected org.hibernate.Criteria createObservationCriteria(org.hibernate.Session session, ObservationConstellation oc, Set<String> features)
session
- Hibernate sessionoc
- ObservationConstellation with parameter for restrictionsfeatures
- FeatureOfInterest identifier for restrictions@Deprecated protected org.hibernate.Criteria createTemporalFilterLessCriteria(org.hibernate.Session session, GetObservationRequest request, Set<String> features) throws org.hibernate.HibernateException, OwsExceptionReport
session
- Hibernate sessionrequest
- GetObservation requestfeatures
- FeatureOfInterest identifiersorg.hibernate.HibernateException
- If an error occurs during Criteria creationOwsExceptionReport
- If an requested parameter is not supported@Deprecated protected org.hibernate.criterion.Order getOrder(SosConstants.SosIndeterminateTime indetTime)
SosConstants.SosIndeterminateTime
indetTime
- SosIndeterminateTime value@Deprecated private List<Observation> executeQueryObservationHydro(org.hibernate.Criteria criteria)
criteria
- Hibernate Criteria to execute@Deprecated private org.hibernate.criterion.Criterion getLatestObservationTimeCriterion(ObservationConstellation oc, String featureIdentifier, org.hibernate.Session session)
oc
- ObservationConstellation with parameter for restrictionsfeatureIdentifier
- FeatureOfInterest identifier for restrictionssession
- Hibernate session@Deprecated private org.hibernate.criterion.Criterion getFirstObservationTimeCriterion(ObservationConstellation oc, String featureIdentifier, org.hibernate.Session session)
oc
- ObservationConstellation with parameter for restrictionsfeatureIdentifier
- FeatureOfInterest identifier for restrictionssession
- Hibernate sessionCopyright © 2012-2015 52north.org. All Rights Reserved.