|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.observation.persistence.SQLObservationDatastore
org.deegree.observation.persistence.simple.SimpleObservationDatastore
public class SimpleObservationDatastore
Simple ObservationDatastore that stores all measurements with time.
| Field Summary | |
|---|---|
protected java.lang.String |
procColumn
the name of the database column that contains the procedure id |
protected java.lang.String |
timeColumn
the name of the database column that contains the timestamp |
| Fields inherited from class org.deegree.observation.persistence.SQLObservationDatastore |
|---|
columnMap, jdbcId, optionMap, properties, tableName |
| Constructor Summary | |
|---|---|
SimpleObservationDatastore(java.lang.String jdbcId,
java.lang.String tableName,
java.util.Map<java.lang.String,java.lang.String> columnMap,
java.util.Map<java.lang.String,java.lang.String> optionMap,
java.util.List<Property> properties)
|
|
| Method Summary | |
|---|---|
protected SQLFilterConverter |
getFilterConverter()
|
Observation |
getObservation(FilterCollection filter,
Offering offering)
Get measurements from the datastore. |
protected Procedure |
getProcedure(java.sql.ResultSet resultSet,
Offering offering)
|
protected java.util.List<Property> |
getPropertyMap(FilterCollection filter)
Create a map with all requested properties. |
SamplingTime |
getSamplingTime()
Get the time span (sampling time) of all observations in this datastore. |
protected java.sql.PreparedStatement |
getStatement(FilterCollection filter,
java.util.Collection<java.lang.String> collection,
java.sql.Connection conn,
Offering offering)
Create the sql statement. |
| 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 |
| Field Detail |
|---|
protected final java.lang.String procColumn
protected final java.lang.String timeColumn
| Constructor Detail |
|---|
public SimpleObservationDatastore(java.lang.String jdbcId,
java.lang.String tableName,
java.util.Map<java.lang.String,java.lang.String> columnMap,
java.util.Map<java.lang.String,java.lang.String> optionMap,
java.util.List<Property> properties)
jdbcId - tableName - columnMap - optionMap - properties - | Method Detail |
|---|
public Observation getObservation(FilterCollection filter,
Offering offering)
throws ObservationDatastoreException
ObservationDatastore
ObservationDatastoreException
protected Procedure getProcedure(java.sql.ResultSet resultSet,
Offering offering)
throws java.sql.SQLException
resultSet -
java.sql.SQLExceptionpublic SamplingTime getSamplingTime()
ObservationDatastore
protected SQLFilterConverter getFilterConverter()
protected java.sql.PreparedStatement getStatement(FilterCollection filter,
java.util.Collection<java.lang.String> collection,
java.sql.Connection conn,
Offering offering)
throws FilterException,
java.sql.SQLException
filter - collection - conn - offering -
FilterException
java.sql.SQLException
protected java.util.List<Property> getPropertyMap(FilterCollection filter)
throws ObservationDatastoreException
filter -
SOServiceException
ObservationDatastoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||