Package org.n52.series.db.old.da.data
Class ProfileDataRepository<V,T>
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<V,T>
- All Implemented Interfaces:
TimeOutputCreator,ValueAssembler<org.n52.series.db.beans.ProfileDataEntity,,org.n52.io.response.dataset.profile.ProfileValue<V>, Set<org.n52.series.db.beans.DataEntity<?>>> DataRepository<org.n52.series.db.beans.ProfileDataEntity,,org.n52.io.response.dataset.profile.ProfileValue<V>, Set<org.n52.series.db.beans.DataEntity<?>>> org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
CategoryProfileDataRepository,QuantityProfileDataRepository,TextProfileDataRepository
public abstract class ProfileDataRepository<V,T>
extends AbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<V>,Set<org.n52.series.db.beans.DataEntity<?>>>
-
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
ConstructorsConstructorDescriptionProfileDataRepository(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.n52.io.response.dataset.Data<org.n52.io.response.dataset.profile.ProfileValue<V>>assembleData(Long dataset, DbQuery query, org.hibernate.Session session) protected <E extends org.n52.series.db.beans.DataEntity<T>>
org.n52.io.response.dataset.profile.ProfileDataItem<T>assembleDataItem(E dataEntity, org.n52.io.response.dataset.profile.ProfileValue<T> profile, Set<Map<String, Object>> parameters, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) protected <E extends org.n52.series.db.beans.DataEntity<V>>
org.n52.io.response.dataset.profile.ProfileDataItem<V>assembleDataItem(E dataEntity, org.n52.io.response.dataset.profile.ProfileValue<T> profile, org.n52.series.db.beans.ProfileDataEntity observation, DbQuery query) org.n52.io.response.dataset.profile.ProfileValue<V>assembleDataValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) Assembles an output for a data entity for a given query.protected org.n52.io.response.dataset.profile.ProfileValue<V>protected org.n52.io.response.dataset.profile.ProfileValue<V>createProfileValue(org.n52.series.db.beans.ProfileDataEntity observation, DbQuery query) protected abstract org.n52.io.response.dataset.profile.ProfileValue<V>createValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) protected booleanisVertical(Map<String, Object> parameterObject, String verticalName) protected org.n52.series.db.beans.ProfileDataEntityunproxy(org.n52.series.db.beans.DataEntity<?> dataEntity, org.hibernate.Session session) Methods 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, getFirstValue, getLastValue, 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
-
ProfileDataRepository
-
-
Method Details
-
unproxy
protected org.n52.series.db.beans.ProfileDataEntity unproxy(org.n52.series.db.beans.DataEntity<?> dataEntity, org.hibernate.Session session) - Overrides:
unproxyin classAbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<V>, Set<org.n52.series.db.beans.DataEntity<?>>>
-
createEmptyValue
- Specified by:
createEmptyValuein classAbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<V>, Set<org.n52.series.db.beans.DataEntity<?>>>
-
isVertical
-
assembleData
protected org.n52.io.response.dataset.Data<org.n52.io.response.dataset.profile.ProfileValue<V>> assembleData(Long dataset, DbQuery query, org.hibernate.Session session) - Specified by:
assembleDatain classAbstractDataRepository<org.n52.series.db.beans.ProfileDataEntity,org.n52.io.response.dataset.profile.ProfileValue<V>, Set<org.n52.series.db.beans.DataEntity<?>>>
-
assembleDataValue
public org.n52.io.response.dataset.profile.ProfileValue<V> assembleDataValue(org.n52.series.db.beans.ProfileDataEntity observation, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query) Description copied from interface:ValueAssemblerAssembles an output for a data entity for a given query.- Parameters:
observation- the single data entity to assembledataset- the dataset the data entity belongs toquery- the query- Returns:
- the assembled output
-
createProfileValue
-
createValue
-
assembleDataItem
-
assembleDataItem
protected <E extends org.n52.series.db.beans.DataEntity<T>> org.n52.io.response.dataset.profile.ProfileDataItem<T> assembleDataItem(E dataEntity, org.n52.io.response.dataset.profile.ProfileValue<T> profile, Set<Map<String, Object>> parameters, org.n52.series.db.beans.DatasetEntity dataset, DbQuery query)
-