Package org.n52.series.db.old.da.data
Class CountDataRepository
java.lang.Object
org.n52.series.db.old.da.SessionAwareAssembler
org.n52.series.db.old.da.data.AbstractDataRepository<E,V,T>
org.n52.series.db.old.da.data.AbstractNumericalDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue,Integer>
org.n52.series.db.old.da.data.CountDataRepository
- All Implemented Interfaces:
TimeOutputCreator,ValueAssembler<org.n52.series.db.beans.CountDataEntity,,org.n52.io.response.dataset.count.CountValue, Integer> DataRepository<org.n52.series.db.beans.CountDataEntity,,org.n52.io.response.dataset.count.CountValue, Integer> org.springframework.beans.factory.InitializingBean
public class CountDataRepository
extends AbstractNumericalDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue,Integer>
-
Field Summary
Fields inherited from class org.n52.series.db.old.da.SessionAwareAssembler
dbQueryFactory, mapperFactory, serviceEntityFactoryFields inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
OFFSET_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionCountDataRepository(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.n52.io.response.dataset.Data<org.n52.io.response.dataset.count.CountValue>assembleData(Long dataset, DbQuery query, org.hibernate.Session session) org.n52.io.response.dataset.count.CountValueassembleDataValue(org.n52.series.db.beans.CountDataEntity observation, org.n52.series.db.beans.DatasetEntity series, DbQuery query) Assembles an output for a data entity for a given query.protected org.n52.io.response.dataset.count.CountValueorg.n52.io.response.dataset.count.CountValuegetFirstValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) org.n52.io.response.dataset.count.CountValuegetLastValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) Methods inherited from class org.n52.series.db.old.da.data.AbstractNumericalDataRepository
getAverage, getMax, getMinMethods inherited from class org.n52.series.db.old.da.data.AbstractDataRepository
addGeometry, addMetadatasIfNeeded, addParameters, addResultTime, addValidTime, assembleData, assembleDataValueWithMetadata, assembleExpandedData, assembleExpandedData, createDataDao, format, format, getClosestValueAfterEnd, getClosestValueAfterEnd, getClosestValueBeforeStart, getClosestValueBeforeStart, getConnectors, getCount, getData, getDetectionLimit, hasSingleValidReferenceValue, hasValidEntriesWithinRequestedTimespan, prepareValue, unproxyMethods inherited from class org.n52.series.db.old.da.SessionAwareAssembler
afterPropertiesSet, createCondensed, createDatasetParameters, createGeometry, createTimeOutput, createTimeOutput, getCondensedCategory, getCondensedFeature, getCondensedOffering, getCondensedPhenomenon, getCondensedPlatform, getCondensedProcedure, getCondensedService, getCondensedTag, getCondensedTags, getCrsUtils, getDbQuery, getGeometry, getMapperFactory, getOriginTimeZone, getServiceEntity, getServiceEntity, getSession, getSessionStore, parseId, returnSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.series.db.old.da.data.DataRepository
setServiceEntityMethods inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
createTimeOutputMethods inherited from interface org.n52.sensorweb.server.db.ValueAssembler
getConnector, getReferenceValues, hasConnector
-
Constructor Details
-
CountDataRepository
-
-
Method Details
-
createEmptyValue
protected org.n52.io.response.dataset.count.CountValue createEmptyValue()- Specified by:
createEmptyValuein classAbstractDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer>
-
getFirstValue
public org.n52.io.response.dataset.count.CountValue getFirstValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) - Specified by:
getFirstValuein interfaceValueAssembler<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer> - Overrides:
getFirstValuein classAbstractDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer> - Parameters:
entity- the dataset entityquery- the query- Returns:
- the first value for the given dataset
-
getLastValue
public org.n52.io.response.dataset.count.CountValue getLastValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) - Specified by:
getLastValuein interfaceValueAssembler<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer> - Overrides:
getLastValuein classAbstractDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer> - Parameters:
entity- the dataset entityquery- the query- Returns:
- the last value for the given dataset
-
assembleData
protected org.n52.io.response.dataset.Data<org.n52.io.response.dataset.count.CountValue> assembleData(Long dataset, DbQuery query, org.hibernate.Session session) - Specified by:
assembleDatain classAbstractDataRepository<org.n52.series.db.beans.CountDataEntity,org.n52.io.response.dataset.count.CountValue, Integer>
-
assembleDataValue
public org.n52.io.response.dataset.count.CountValue assembleDataValue(org.n52.series.db.beans.CountDataEntity observation, org.n52.series.db.beans.DatasetEntity series, DbQuery query) Description copied from interface:ValueAssemblerAssembles an output for a data entity for a given query.- Parameters:
observation- the single data entity to assembleseries- the dataset the data entity belongs toquery- the query- Returns:
- the assembled output
-