public class ObservationDAO extends AbstractObservationDAO
AbstractObservationDAO.ObservationIdentifiers
TimeCreator.MinMax
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
static String |
SQL_QUERY_GET_FIRST_OBSERVATION_TIME |
static String |
SQL_QUERY_GET_LATEST_OBSERVATION_TIME |
Constructor and Description |
---|
ObservationDAO() |
Modifier and Type | Method and Description |
---|---|
private void |
addAliasAndNotRestrictionFor(org.hibernate.Criteria c,
Set<Long> procedureIds,
Set<Long> observablePropertyIds,
Set<Long> featureIds) |
void |
addFeatureOfInterestRestrictionToObservationCriteria(org.hibernate.Criteria criteria,
String featureOfInterest)
Add featureOfInterest restriction to Hibernate Criteria for Observation
|
void |
addObservablePropertyRestrictionToObservationCriteria(org.hibernate.Criteria criteria,
String observableProperty)
Add observableProperty restriction to Hibernate Criteria for Observation
|
protected void |
addObservationIdentifiersToObservation(AbstractObservationDAO.ObservationIdentifiers observationIdentifiers,
AbstractObservation observation,
org.hibernate.Session session)
Add observation identifier (procedure, observableProperty,
featureOfInterest) to observation
|
void |
addProcedureRestrictionToObservationCriteria(org.hibernate.Criteria criteria,
String procedure)
Add procedure restriction to Hibernate Criteria for Observation
|
protected Class<?> |
getBlobObservationClass() |
protected Class<?> |
getBooleanObservationClass() |
protected Class<?> |
getCategoryObservationClass() |
protected Class<?> |
getCountObservationClass() |
protected Class<?> |
getGeometryObservationClass() |
org.hibernate.ScrollableResults |
getNotMatchingSeries(Set<Long> procedureIds,
Set<Long> observablePropertyIds,
Set<Long> featureIds,
GetObservationRequest request,
Set<String> features,
org.hibernate.criterion.Criterion temporalFilterCriterion,
org.hibernate.Session session) |
org.hibernate.ScrollableResults |
getNotMatchingSeries(Set<Long> procedureIds,
Set<Long> observablePropertyIds,
Set<Long> featureIds,
GetObservationRequest request,
Set<String> features,
org.hibernate.Session session) |
protected Class<?> |
getNumericObservationClass() |
protected Class<?> |
getObservationClass() |
protected org.hibernate.Criteria |
getObservationCriteriaFor(GetObservationRequest request,
Collection<String> features,
org.hibernate.criterion.Criterion filterCriterion,
SosConstants.SosIndeterminateTime sosIndeterminateTime,
org.hibernate.Session session) |
org.hibernate.Criteria |
getObservationCriteriaFor(String procedure,
String observableProperty,
org.hibernate.Session session)
Get Hibernate Criteria for observation with restrictions procedure and
observableProperty
|
org.hibernate.Criteria |
getObservationCriteriaFor(String procedure,
String observableProperty,
String featureOfInterest,
org.hibernate.Session session)
Get Hibernate Criteria for observation with restrictions procedure,
observableProperty and featureOfInterest
|
org.hibernate.Criteria |
getObservationCriteriaForFeatureOfInterest(String featureOfInterest,
org.hibernate.Session session)
Get Hibernate Criteria for observation with restriction featureOfInterest
|
org.hibernate.Criteria |
getObservationCriteriaForObservableProperty(String observableProperty,
org.hibernate.Session session)
Get Hibernate Criteria for observation with restriction
observableProperty
|
org.hibernate.Criteria |
getObservationCriteriaForProcedure(String procedure,
org.hibernate.Session session)
Get Hibernate Criteria for observation with restriction procedure
|
Collection<String> |
getObservationIdentifiers(String procedureIdentifier,
org.hibernate.Session session)
Get all observation identifiers for a procedure.
|
protected Class<?> |
getObservationInfoClass() |
org.hibernate.Criteria |
getObservationInfoCriteriaForFeatureOfInterestAndOffering(String feature,
String offering,
org.hibernate.Session session)
Get Hibernate Criteria for querying observations with parameters
featureOfInterst and offering
|
org.hibernate.Criteria |
getObservationInfoCriteriaForFeatureOfInterestAndProcedure(String feature,
String procedure,
org.hibernate.Session session)
Get Hibernate Criteria for querying observations with parameters
featureOfInterst and procedure
|
private List<AbstractObservation> |
getObservationsFor(GetObservationRequest request,
Collection<String> features,
org.hibernate.criterion.Criterion filterCriterion,
SosConstants.SosIndeterminateTime sosIndeterminateTime,
org.hibernate.Session session) |
Collection<AbstractObservation> |
getObservationsFor(GetObservationRequest request,
Set<String> features,
org.hibernate.criterion.Criterion filterCriterion,
org.hibernate.Session session) |
Collection<AbstractObservation> |
getObservationsFor(GetObservationRequest request,
Set<String> features,
org.hibernate.Session session) |
Collection<AbstractObservation> |
getObservationsFor(GetObservationRequest request,
Set<String> features,
SosConstants.SosIndeterminateTime sosIndeterminateTime,
org.hibernate.Session session) |
Collection<? extends AbstractObservation> |
getObservationsFor(ObservationConstellation oc,
HashSet<String> features,
GetObservationRequest request,
SosConstants.SosIndeterminateTime sosIndeterminateTime,
org.hibernate.Session session) |
protected Class<?> |
getObservationTimeClass() |
List<com.vividsolutions.jts.geom.Geometry> |
getSamplingGeometries(String feature,
org.hibernate.Session session) |
org.hibernate.ScrollableResults |
getStreamingObservationsFor(GetObservationRequest request,
Set<String> features,
org.hibernate.criterion.Criterion temporalFilterCriterion,
org.hibernate.Session session) |
org.hibernate.ScrollableResults |
getStreamingObservationsFor(GetObservationRequest request,
Set<String> features,
org.hibernate.Session session) |
protected Class<?> |
getSweDataArrayObservationClass() |
protected Class<?> |
getTextObservationClass() |
void |
updateObservationSetAsDeletedForProcedure(String procedure,
boolean deleteFlag,
org.hibernate.Session session)
Update observation by setting deleted flag
|
addAdditionalObjectsToObservationIdentifiers, addFeatureOfInterestToObservationIdentifiers, addIndeterminateTimeRestriction, addIndeterminateTimeRestriction, addObservationIdentifierToCriteria, addOfferingsToObservation, addPhenomenonTimeToObservation, addPhenomeonTimeAndResultTimeToObservation, addProcedureObservablePropertyToObservationIdentifiers, addResultTimeToObservation, addValidTimeToObservation, checkAndAddSpatialFilteringProfileCriterion, checkBlobObservationsFor, checkBooleanObservationsFor, checkCategoryObservationsFor, checkCountObservationsFor, checkGeometryObservationsFor, checkNumericObservationsFor, checkObservationFor, checkSweDataArrayObservationsFor, checkTextObservationsFor, containsSamplingGeometries, createCriteriaForObservationClass, createObservationFromValue, createObservationIdentifiers, finalizeObservationInsertion, getCodespace, getDefaultObservationCriteria, getDefaultObservationInfoCriteria, getDefaultObservationTimeCriteria, getGlobalTemporalBoundingBox, getIndeterminateTimeExtremaProjection, getIndeterminateTimeFilterProperty, getMaxPhenomenonTime, getMaxResultTime, getMinPhenomenonTime, getMinResultTime, getObservationByIdentifier, getObservationClassCriteriaForResultModel, getObservationIdentifier, getOrder, getSpatialFilteringProfileEnvelopeForOfferingId, getUnit, insertObservationMultiValue, insertObservationSingleValue, insertObservationSingleValue, insertParameter, updateObservation
addDescription, addIdentifier, addIdentifierNameDescription, addName, getAndAddIdentifierNameDescription, getDescription, getIdentifier, getName, insertNameAndDescription, insertNames
addMinMaxProjection, createTimePeriod
private static final org.slf4j.Logger LOGGER
public static final String SQL_QUERY_GET_LATEST_OBSERVATION_TIME
public static final String SQL_QUERY_GET_FIRST_OBSERVATION_TIME
protected void addObservationIdentifiersToObservation(AbstractObservationDAO.ObservationIdentifiers observationIdentifiers, AbstractObservation observation, org.hibernate.Session session)
AbstractObservationDAO
addObservationIdentifiersToObservation
in class AbstractObservationDAO
observationIdentifiers
- Observation identifiersobservation
- Observation to add identifierssession
- Hibernate sessionpublic org.hibernate.Criteria getObservationInfoCriteriaForFeatureOfInterestAndProcedure(String feature, String procedure, org.hibernate.Session session)
AbstractObservationDAO
getObservationInfoCriteriaForFeatureOfInterestAndProcedure
in class AbstractObservationDAO
feature
- FeatureOfInterest to query forprocedure
- Procedure to query forsession
- Hiberante Sessionpublic org.hibernate.Criteria getObservationInfoCriteriaForFeatureOfInterestAndOffering(String feature, String offering, org.hibernate.Session session)
AbstractObservationDAO
getObservationInfoCriteriaForFeatureOfInterestAndOffering
in class AbstractObservationDAO
feature
- FeatureOfInterest to query foroffering
- Offering to query forsession
- Hiberante Sessionpublic void updateObservationSetAsDeletedForProcedure(String procedure, boolean deleteFlag, org.hibernate.Session session)
procedure
- Procedure for which the observations should be updateddeleteFlag
- New deleted flag valuesession
- Hibernate Sessionpublic void addObservablePropertyRestrictionToObservationCriteria(org.hibernate.Criteria criteria, String observableProperty)
criteria
- Hibernate Criteria for ObservationobservableProperty
- ObservableProperty identifier to addpublic void addProcedureRestrictionToObservationCriteria(org.hibernate.Criteria criteria, String procedure)
criteria
- Hibernate Criteria for Observationprocedure
- Procedure identifier to addpublic void addFeatureOfInterestRestrictionToObservationCriteria(org.hibernate.Criteria criteria, String featureOfInterest)
criteria
- Hibernate Criteria for ObservationfeatureOfInterest
- FeatureOfInterest identifier to addpublic org.hibernate.Criteria getObservationCriteriaForProcedure(String procedure, org.hibernate.Session session)
AbstractObservationDAO
getObservationCriteriaForProcedure
in class AbstractObservationDAO
procedure
- Procedure parametersession
- Hibernate sessionpublic org.hibernate.Criteria getObservationCriteriaForObservableProperty(String observableProperty, org.hibernate.Session session)
AbstractObservationDAO
getObservationCriteriaForObservableProperty
in class AbstractObservationDAO
session
- Hibernate sessionpublic org.hibernate.Criteria getObservationCriteriaForFeatureOfInterest(String featureOfInterest, org.hibernate.Session session)
AbstractObservationDAO
getObservationCriteriaForFeatureOfInterest
in class AbstractObservationDAO
session
- Hibernate sessionpublic org.hibernate.Criteria getObservationCriteriaFor(String procedure, String observableProperty, org.hibernate.Session session)
AbstractObservationDAO
getObservationCriteriaFor
in class AbstractObservationDAO
session
- Hibernate sessionpublic org.hibernate.Criteria getObservationCriteriaFor(String procedure, String observableProperty, String featureOfInterest, org.hibernate.Session session)
AbstractObservationDAO
getObservationCriteriaFor
in class AbstractObservationDAO
session
- Hibernate sessionpublic Collection<String> getObservationIdentifiers(String procedureIdentifier, org.hibernate.Session session)
AbstractObservationDAO
getObservationIdentifiers
in class AbstractObservationDAO
private List<AbstractObservation> getObservationsFor(GetObservationRequest request, Collection<String> features, org.hibernate.criterion.Criterion filterCriterion, SosConstants.SosIndeterminateTime sosIndeterminateTime, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected org.hibernate.Criteria getObservationCriteriaFor(GetObservationRequest request, Collection<String> features, org.hibernate.criterion.Criterion filterCriterion, SosConstants.SosIndeterminateTime sosIndeterminateTime, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public Collection<AbstractObservation> getObservationsFor(GetObservationRequest request, Set<String> features, org.hibernate.criterion.Criterion filterCriterion, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public Collection<AbstractObservation> getObservationsFor(GetObservationRequest request, Set<String> features, SosConstants.SosIndeterminateTime sosIndeterminateTime, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public Collection<AbstractObservation> getObservationsFor(GetObservationRequest request, Set<String> features, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public Collection<? extends AbstractObservation> getObservationsFor(ObservationConstellation oc, HashSet<String> features, GetObservationRequest request, SosConstants.SosIndeterminateTime sosIndeterminateTime, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public org.hibernate.ScrollableResults getStreamingObservationsFor(GetObservationRequest request, Set<String> features, org.hibernate.criterion.Criterion temporalFilterCriterion, org.hibernate.Session session) throws org.hibernate.HibernateException, OwsExceptionReport
org.hibernate.HibernateException
OwsExceptionReport
public org.hibernate.ScrollableResults getStreamingObservationsFor(GetObservationRequest request, Set<String> features, org.hibernate.Session session) throws org.hibernate.HibernateException, OwsExceptionReport
org.hibernate.HibernateException
OwsExceptionReport
public org.hibernate.ScrollableResults getNotMatchingSeries(Set<Long> procedureIds, Set<Long> observablePropertyIds, Set<Long> featureIds, GetObservationRequest request, Set<String> features, org.hibernate.criterion.Criterion temporalFilterCriterion, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public org.hibernate.ScrollableResults getNotMatchingSeries(Set<Long> procedureIds, Set<Long> observablePropertyIds, Set<Long> featureIds, GetObservationRequest request, Set<String> features, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
public List<com.vividsolutions.jts.geom.Geometry> getSamplingGeometries(String feature, org.hibernate.Session session)
getSamplingGeometries
in class AbstractObservationDAO
private void addAliasAndNotRestrictionFor(org.hibernate.Criteria c, Set<Long> procedureIds, Set<Long> observablePropertyIds, Set<Long> featureIds)
protected Class<?> getObservationClass()
getObservationClass
in class AbstractObservationDAO
protected Class<?> getObservationInfoClass()
getObservationInfoClass
in class AbstractObservationDAO
protected Class<?> getObservationTimeClass()
getObservationTimeClass
in class AbstractObservationDAO
protected Class<?> getBlobObservationClass()
getBlobObservationClass
in class AbstractObservationDAO
protected Class<?> getBooleanObservationClass()
getBooleanObservationClass
in class AbstractObservationDAO
protected Class<?> getCategoryObservationClass()
getCategoryObservationClass
in class AbstractObservationDAO
protected Class<?> getCountObservationClass()
getCountObservationClass
in class AbstractObservationDAO
protected Class<?> getGeometryObservationClass()
getGeometryObservationClass
in class AbstractObservationDAO
protected Class<?> getNumericObservationClass()
getNumericObservationClass
in class AbstractObservationDAO
protected Class<?> getSweDataArrayObservationClass()
getSweDataArrayObservationClass
in class AbstractObservationDAO
protected Class<?> getTextObservationClass()
getTextObservationClass
in class AbstractObservationDAO
Copyright © 2012-2015 52north.org. All Rights Reserved.