public class ResultTemplateDAO extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
ResultTemplateDAO() |
Modifier and Type | Method and Description |
---|---|
void |
checkOrInsertResultTemplate(InsertResultTemplateRequest request,
ObservationConstellation observationConstellation,
FeatureOfInterest featureOfInterest,
org.hibernate.Session session)
Check or insert result template
|
private void |
createAndSaveResultTemplate(InsertResultTemplateRequest request,
ObservationConstellation observationConstellation,
FeatureOfInterest featureOfInterest,
org.hibernate.Session session)
Insert result template
|
ResultTemplate |
getResultTemplateObject(String identifier,
org.hibernate.Session session)
Get result template object for result template identifier
|
List<ResultTemplate> |
getResultTemplateObject(String offering,
String observedProperty,
Collection<String> featureOfInterest,
org.hibernate.Session session)
Get result template objects for offering identifier, observable property
identifier and featureOfInterest identifier
|
ResultTemplate |
getResultTemplateObject(String offering,
String observedProperty,
org.hibernate.Session session)
Get result template object for offering identifier and observable
property identifier
|
List<ResultTemplate> |
getResultTemplateObjects(org.hibernate.Session session)
Get all result template objects
|
ResultTemplate |
getResultTemplateObjectsForObservationConstellation(ObservationConstellation observationConstellation,
org.hibernate.Session session)
Get result template object for observation constellation
|
List<ResultTemplate> |
getResultTemplateObjectsForObservationConstellationAndFeature(ObservationConstellation observationConstellation,
AbstractFeature sosAbstractFeature,
org.hibernate.Session session)
Get result template objects for observation constellation and
featureOfInterest
|
public ResultTemplate getResultTemplateObject(String identifier, org.hibernate.Session session)
identifier
- Result template identifiersession
- Hibernate sessionpublic List<ResultTemplate> getResultTemplateObjects(org.hibernate.Session session)
session
- Hibernate sessionpublic ResultTemplate getResultTemplateObjectsForObservationConstellation(ObservationConstellation observationConstellation, org.hibernate.Session session)
observationConstellation
- Observation constellation objectsession
- Hibernate sessionpublic List<ResultTemplate> getResultTemplateObjectsForObservationConstellationAndFeature(ObservationConstellation observationConstellation, AbstractFeature sosAbstractFeature, org.hibernate.Session session)
observationConstellation
- Observation constellation objectsosAbstractFeature
- FeatureOfInterestsession
- Hibernate sessionpublic ResultTemplate getResultTemplateObject(String offering, String observedProperty, org.hibernate.Session session)
offering
- Offering identifierobservedProperty
- Observable property identifiersession
- Hibernate sessionpublic List<ResultTemplate> getResultTemplateObject(String offering, String observedProperty, Collection<String> featureOfInterest, org.hibernate.Session session)
offering
- Offering identifierobservedProperty
- Observable property identifierfeatureOfInterest
- FeatureOfInterest identifiersession
- Hibernate sessionpublic void checkOrInsertResultTemplate(InsertResultTemplateRequest request, ObservationConstellation observationConstellation, FeatureOfInterest featureOfInterest, org.hibernate.Session session) throws OwsExceptionReport
request
- Insert result template requestobservationConstellation
- Observation constellation objectfeatureOfInterest
- FeatureOfInterest objectsession
- Hibernate sessionOwsExceptionReport
- If the requested structure/encoding is invalidprivate void createAndSaveResultTemplate(InsertResultTemplateRequest request, ObservationConstellation observationConstellation, FeatureOfInterest featureOfInterest, org.hibernate.Session session) throws OwsExceptionReport
request
- Insert result template requestobservationConstellation
- Observation constellation objectfeatureOfInterest
- FeatureOfInterest objectsession
- Hibernate sessionOwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.