Package org.n52.series.db.old.da
Class ParameterAssembler<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
- java.lang.Object
-
- org.n52.series.db.old.da.SessionAwareAssembler
-
- org.n52.series.db.old.da.ParameterAssembler<E,O>
-
- All Implemented Interfaces:
TimeOutputCreator,OutputAssembler<O>,SearchableAssembler,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
CategoryAssembler,HierarchicalParameterAssembler,MeasuringProgramRepository,PlatformAssembler,SamplingRepository,ServiceAssembler
public abstract class ParameterAssembler<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput> extends SessionAwareAssembler implements SearchableAssembler, OutputAssembler<O>
-
-
Field Summary
-
Fields inherited from class org.n52.series.db.old.da.SessionAwareAssembler
dbQueryFactory, mapperFactory, serviceEntityFactory
-
Fields inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
OFFSET_REGEX
-
-
Constructor Summary
Constructors Constructor Description ParameterAssembler(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<org.n52.series.spi.search.SearchResult>convertToSearchResults(List<E> found, DbQuery query)protected abstract OcreateCondensed(E entity, DbQuery query, org.hibernate.Session session)protected List<O>createCondensed(Collection<E> allInstances, DbQuery query, org.hibernate.Session session)protected abstract AbstractDao<E>createDao(org.hibernate.Session session)protected abstract org.n52.series.spi.search.SearchResultcreateEmptySearchResult(String id, String label, String baseUrl)protected abstract OcreateExpanded(E instance, DbQuery query, org.hibernate.Session session)protected List<O>createExpanded(Collection<E> allInstances, DbQuery query, org.hibernate.Session session)protected abstract SearchableDao<E>createSearchableDao(org.hibernate.Session session)booleanexists(String id, DbQuery query)List<O>getAllCondensed(DbQuery query)List<O>getAllExpanded(DbQuery query)protected List<E>getAllInstances(DbQuery parameters, org.hibernate.Session session)protected Optional<E>getEntity(Long id, AbstractDao<E> dao, DbQuery query)protected EgetInstance(Long id, DbQuery query, org.hibernate.Session session)OgetInstance(String id, DbQuery query)protected abstract ParameterOutputSearchResultMapper<E,O>getOutputMapper(DbQuery query)protected abstract OprepareEmptyParameterOutput()Collection<org.n52.series.spi.search.SearchResult>searchFor(DbQuery query)-
Methods 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, returnSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
createTimeOutput
-
-
-
-
Constructor Detail
-
ParameterAssembler
public ParameterAssembler(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory)
-
-
Method Detail
-
prepareEmptyParameterOutput
protected abstract O prepareEmptyParameterOutput()
-
createEmptySearchResult
protected abstract org.n52.series.spi.search.SearchResult createEmptySearchResult(String id, String label, String baseUrl)
-
createDao
protected abstract AbstractDao<E> createDao(org.hibernate.Session session)
-
createSearchableDao
protected abstract SearchableDao<E> createSearchableDao(org.hibernate.Session session)
-
exists
public boolean exists(String id, DbQuery query)
- Specified by:
existsin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
getAllCondensed
public List<O> getAllCondensed(DbQuery query)
- Specified by:
getAllCondensedin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
createCondensed
protected List<O> createCondensed(Collection<E> allInstances, DbQuery query, org.hibernate.Session session)
-
createCondensed
protected abstract O createCondensed(E entity, DbQuery query, org.hibernate.Session session)
-
getOutputMapper
protected abstract ParameterOutputSearchResultMapper<E,O> getOutputMapper(DbQuery query)
-
createExpanded
protected abstract O createExpanded(E instance, DbQuery query, org.hibernate.Session session)
-
createExpanded
protected List<O> createExpanded(Collection<E> allInstances, DbQuery query, org.hibernate.Session session)
-
getAllExpanded
public List<O> getAllExpanded(DbQuery query)
- Specified by:
getAllExpandedin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
getAllInstances
protected List<E> getAllInstances(DbQuery parameters, org.hibernate.Session session)
-
getInstance
public O getInstance(String id, DbQuery query)
- Specified by:
getInstancein interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
searchFor
public Collection<org.n52.series.spi.search.SearchResult> searchFor(DbQuery query)
- Specified by:
searchForin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>- Specified by:
searchForin interfaceSearchableAssembler
-
-