Package org.n52.series.db.old.da.data
Class QuantityProfileDataRepository
java.lang.Object
org.n52.series.db.old.da.SessionAwareAssembler
org.n52.series.db.old.da.data.AbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<V>,Set<org.n52.series.db.beans.DataEntity<?>>>
org.n52.series.db.old.da.data.ProfileDataRepository<BigDecimal,BigDecimal>
org.n52.series.db.old.da.data.QuantityProfileDataRepository
- All Implemented Interfaces:
TimeOutputCreator,ValueAssembler<org.n52.series.db.beans.ProfileDataEntity,,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> DataRepository<org.n52.series.db.beans.ProfileDataEntity,,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> org.springframework.beans.factory.InitializingBean
-
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
ConstructorsConstructorDescriptionQuantityProfileDataRepository(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.n52.io.response.dataset.profile.ProfileValue<BigDecimal>assembleDataValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity datasetEntity, DbQuery query) Assembles an output for a data entity for a given query.protected org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>createValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>getFirstValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>getLastValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) Methods inherited from class org.n52.series.db.old.da.data.ProfileDataRepository
assembleData, assembleDataItem, assembleDataItem, createEmptyValue, createProfileValue, isVertical, unproxyMethods 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, prepareValueMethods 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
-
QuantityProfileDataRepository
public QuantityProfileDataRepository(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory)
-
-
Method Details
-
assembleDataValue
public org.n52.io.response.dataset.profile.ProfileValue<BigDecimal> assembleDataValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity datasetEntity, DbQuery query) Description copied from interface:ValueAssemblerAssembles an output for a data entity for a given query.- Specified by:
assembleDataValuein interfaceValueAssembler<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> - Overrides:
assembleDataValuein classProfileDataRepository<BigDecimal,BigDecimal> - Parameters:
observation- the single data entity to assembledatasetEntity- the dataset the data entity belongs toquery- the query- Returns:
- the assembled output
-
createValue
protected org.n52.io.response.dataset.profile.ProfileValue<BigDecimal> createValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) - Specified by:
createValuein classProfileDataRepository<BigDecimal,BigDecimal>
-
getFirstValue
public org.n52.io.response.dataset.profile.ProfileValue<BigDecimal> getFirstValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) - Specified by:
getFirstValuein interfaceValueAssembler<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> - Overrides:
getFirstValuein classAbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> - Parameters:
entity- the dataset entityquery- the query- Returns:
- the first value for the given dataset
-
getLastValue
public org.n52.io.response.dataset.profile.ProfileValue<BigDecimal> getLastValue(org.n52.series.db.beans.DatasetEntity entity, DbQuery query) - Specified by:
getLastValuein interfaceValueAssembler<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> - Overrides:
getLastValuein classAbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<BigDecimal>, Set<org.n52.series.db.beans.DataEntity<?>>> - Parameters:
entity- the dataset entityquery- the query- Returns:
- the last value for the given dataset
-