public class GetResultDAO extends AbstractGetResultDAO
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private HibernateSessionHolder |
sessionHolder |
DATASOURCE_DAO_IDENTIFIER, IDEPENDET_IDENTIFIER
Constructor and Description |
---|
GetResultDAO()
constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
addOfferingRestriction(org.hibernate.Criteria c,
String offering)
Add offering identifier restriction to Hibernate Criteria
|
private void |
addSpatialFilteringProfileRestrictions(org.hibernate.Criteria criteria,
GetResultRequest request,
org.hibernate.Session session) |
private void |
addTemporalFilter(org.hibernate.Criteria c,
List<TemporalFilter> temporalFilter)
Add offering identifier restriction to Hibernate Criteria
|
private org.hibernate.Criteria |
createCriteriaFor(Class clazz,
org.hibernate.Session session)
Create Hibernate Criteria for the class and add ascending of phenomenon
start time
|
Set<String> |
getConformanceClasses() |
String |
getDatasourceDaoIdentifier() |
GetResultResponse |
getResult(GetResultRequest request) |
protected List<AbstractObservation> |
queryObservation(GetResultRequest request,
Set<String> featureIdentifiers,
org.hibernate.Session session)
Query observations from database depending on requested filters
|
private List<ResultTemplate> |
queryResultTemplate(GetResultRequest request,
Set<String> featureIdentifier,
org.hibernate.Session session)
Query corresponding ResultTemplate
|
protected List<AbstractObservation> |
querySeriesObservation(GetResultRequest request,
Collection<String> featureIdentifiers,
org.hibernate.Session session)
Query series observations from database depending on requested filters
|
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 GetResultResponse getResult(GetResultRequest request) throws OwsExceptionReport
getResult
in class AbstractGetResultDAO
OwsExceptionReport
public Set<String> getConformanceClasses()
getConformanceClasses
in interface OperationDAO
getConformanceClasses
in class AbstractOperationDAO
protected List<AbstractObservation> queryObservation(GetResultRequest request, Set<String> featureIdentifiers, org.hibernate.Session session) throws OwsExceptionReport
request
- GetObservation requestfeatureIdentifiers
- Set of feature identifiers. If null, query filter
will not be added. If empty, null will be
returned.session
- Hibernate sessionOwsExceptionReport
- If an error occurs.protected List<AbstractObservation> querySeriesObservation(GetResultRequest request, Collection<String> featureIdentifiers, org.hibernate.Session session) throws OwsExceptionReport
request
- GetObservation requestfeatureIdentifiers
- Set of feature identifiers. If null, query filter
will not be added. If empty, null will be
returned.session
- Hibernate sessionOwsExceptionReport
- If an error occurs.private List<ResultTemplate> queryResultTemplate(GetResultRequest request, Set<String> featureIdentifier, org.hibernate.Session session)
request
- GetResult requestfeatureIdentifier
- Associated featureOfInterest identifiersession
- Hibernate sessionprivate void addOfferingRestriction(org.hibernate.Criteria c, String offering)
c
- Hibernate Criteria to add restrictionoffering
- Offering identifier ot addprivate void addTemporalFilter(org.hibernate.Criteria c, List<TemporalFilter> temporalFilter) throws UnsupportedTimeException, UnsupportedValueReferenceException, UnsupportedOperatorException
c
- Hibernate Criteria to add restrictiontemporalFilter
- Temporal filters to addUnsupportedTimeException
- If the time is not supportedUnsupportedValueReferenceException
- If the valueReference is not supportedUnsupportedOperatorException
- If the temporal operator is not supportedprivate org.hibernate.Criteria createCriteriaFor(Class clazz, org.hibernate.Session session)
clazz
- The class for the Criteriasession
- Hibernate sessionprivate void addSpatialFilteringProfileRestrictions(org.hibernate.Criteria criteria, GetResultRequest request, org.hibernate.Session session) throws OwsExceptionReport
criteria
- Hibernate Criteria to add restrictionrequest
- GetResult requestsession
- Hibernate sessionOwsExceptionReport
- If Spatial Filtering Profile is not supported or an error
occursCopyright © 2012-2015 52north.org. All Rights Reserved.