org.deegree.observation.persistence.continuous
Class ContinuousObservationDatastore

java.lang.Object
  extended by org.deegree.observation.persistence.SQLObservationDatastore
      extended by org.deegree.observation.persistence.simple.SimpleObservationDatastore
          extended by org.deegree.observation.persistence.continuous.ContinuousObservationDatastore
All Implemented Interfaces:
ObservationDatastore

public class ContinuousObservationDatastore
extends SimpleObservationDatastore

ObservationDatastore for measurements that are stored in a fixed interval. At the moment it only supports single procedures.

Version:
$Revision: 26739 $, $Date: 2010-09-14 16:30:04 +0200 (Tue, 14 Sep 2010) $
Author:
Oliver Tonnhofer, last edited by: $Author: aionita $

Field Summary
 
Fields inherited from class org.deegree.observation.persistence.simple.SimpleObservationDatastore
procColumn, timeColumn
 
Fields inherited from class org.deegree.observation.persistence.SQLObservationDatastore
columnMap, jdbcId, optionMap, properties, tableName
 
Constructor Summary
ContinuousObservationDatastore(String jdbcId, String tableName, Map<String,String> columnMap, Map<String,String> optionMap, List<Property> properties)
           
 
Method Summary
protected  SQLFilterConverter getFilterConverter()
           
 Observation getObservation(FilterCollection filter, Offering offering)
          Get measurements from the datastore.
 SamplingTime getSamplingTime()
          Get the time span (sampling time) of all observations in this datastore.
 
Methods inherited from class org.deegree.observation.persistence.simple.SimpleObservationDatastore
getProcedure, getPropertyMap, getStatement
 
Methods inherited from class org.deegree.observation.persistence.SQLObservationDatastore
getJdbcId, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousObservationDatastore

public ContinuousObservationDatastore(String jdbcId,
                                      String tableName,
                                      Map<String,String> columnMap,
                                      Map<String,String> optionMap,
                                      List<Property> properties)
                               throws ObservationDatastoreException
Parameters:
dsConfig - the datastore configuration
Throws:
SOSConfigurationException - if the DatastoreConfiguration contains no beginDate or interval.
ObservationDatastoreException
Method Detail

getObservation

public Observation getObservation(FilterCollection filter,
                                  Offering offering)
                           throws ObservationDatastoreException
Description copied from interface: ObservationDatastore
Get measurements from the datastore.

Specified by:
getObservation in interface ObservationDatastore
Overrides:
getObservation in class SimpleObservationDatastore
Returns:
the resulting measurements
Throws:
ObservationDatastoreException

getSamplingTime

public SamplingTime getSamplingTime()
Description copied from interface: ObservationDatastore
Get the time span (sampling time) of all observations in this datastore.

Specified by:
getSamplingTime in interface ObservationDatastore
Overrides:
getSamplingTime in class SimpleObservationDatastore
Returns:
the sampling time of the datastore

getFilterConverter

protected SQLFilterConverter getFilterConverter()
Overrides:
getFilterConverter in class SimpleObservationDatastore
Returns:
the sql filter converter


Copyright © 2011. All Rights Reserved.