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, serviceEntityFactoryFields inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
OFFSET_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionParameterAssembler(HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.n52.series.spi.search.SearchResult>convertToSearchResults(List<E> found, DbQuery query) protected abstract OcreateCondensed(E entity, DbQuery query, org.hibernate.Session session) 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) createExpanded(Collection<E> allInstances, DbQuery query, org.hibernate.Session session) protected abstract SearchableDao<E>createSearchableDao(org.hibernate.Session session) booleangetAllCondensed(DbQuery query) getAllExpanded(DbQuery query) getAllInstances(DbQuery parameters, org.hibernate.Session session) getEntity(Long id, AbstractDao<E> dao, DbQuery query) protected EgetInstance(Long id, DbQuery query, org.hibernate.Session session) getInstance(String id, DbQuery query) protected abstract ParameterOutputSearchResultMapper<E,O> getOutputMapper(DbQuery query) protected abstract OCollection<org.n52.series.spi.search.SearchResult>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, returnSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
createTimeOutput
-
Constructor Details
-
ParameterAssembler
-
-
Method Details
-
prepareEmptyParameterOutput
-
createEmptySearchResult
-
createDao
-
createSearchableDao
-
exists
- Specified by:
existsin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
getAllCondensed
- 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
-
getOutputMapper
-
createExpanded
-
createExpanded
protected List<O> createExpanded(Collection<E> allInstances, DbQuery query, org.hibernate.Session session) -
getAllExpanded
- Specified by:
getAllExpandedin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
getAllInstances
-
getInstance
- Specified by:
getInstancein interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>
-
getInstance
-
getEntity
-
searchFor
- Specified by:
searchForin interfaceOutputAssembler<E extends org.n52.series.db.beans.DescribableEntity>- Specified by:
searchForin interfaceSearchableAssembler
-
convertToSearchResults
-